Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问是否可以提供自编译思路 #151

Open
Nekohy opened this issue Apr 24, 2024 · 2 comments
Open

请问是否可以提供自编译思路 #151

Nekohy opened this issue Apr 24, 2024 · 2 comments

Comments

@Nekohy
Copy link

Nekohy commented Apr 24, 2024

[0] env: development
[0] (node:34936) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
[0] (Use node --trace-deprecation ... to show where the warning was created)
[0] (node:34936) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
[0] Starting the development server...
[0]
[0] Failed to compile.
[0]
[0] Module not found: Error: Can't resolve './page/Parse.1' in 'E:\编程学习\lanzouyun-disk-main\src\renderer'
[0] WARNING in ./node_modules/keyv/src/index.js 26:16-42
[0] Critical dependency: the request of a dependency is an expression
[0]
[0] ERROR in ./src/renderer/App.tsx 23:0-35
[0] Module not found: Error: Can't resolve './page/Parse.1' in 'E:\编程学习\lanzouyun-disk-main\src\renderer'
[0]
[0] webpack compiled with 1 error and 1 warning
yarn tsc-electron-build && cd app && yarn start [0] Files successfully emitted, waiting for typecheck results... [0] Issues checking in progress... tsc -p tsconfig.electron.json
[1] src/main/tempCodeRunnerFile.ts(1,1): error TS1208: 'tempCodeRunnerFile.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[1] error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[1] error Command failed with exit code 2.
[1] wait-on http://localhost:3000 && yarn electron-start exited with code 2
[0] ERROR in src/main/tempCodeRunnerFile.ts
[0] TS1208: 'tempCodeRunnerFile.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
[0]
[0] ERROR in src/renderer/App.tsx:21:19
[0] TS2307: Cannot find module './page/Parse.1' or its corresponding type declarations.
[0] 19 | import Download from './page/Download'
[0] 20 | import Complete from './page/Complete'
[0] > 21 | import Parse from './page/Parse.1'
[0] | ^^^^^^^^^^^^^^^^
[0] 22 | import SplitMerge from './page/SplitMerge'
[0] 23 | import Setting from './page/Setting'
[0] 24 |
[0]

尝试使用package.json下的start函数调试直接爆炸

@chenhb23
Copy link
Owner

chenhb23 commented Apr 24, 2024

Screenshot_2024-04-24-20-55-46-858_com android chrome-edit
这里的报错已经很明显了

@Nekohy
Copy link
Author

Nekohy commented Apr 24, 2024

Owner

抱歉对Election不太了解。。不过想提一个issues吧,建议在批量解析的那里加一个分步,有的时候大量导入程序会直接炸掉(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants