You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
ERROR in ./src/main/main.ts 8:14
Module parse failed: Unexpected token (8:14)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| const isDevelopment = process.env.NODE_ENV === 'development';
> let mainWindow: BrowserWindow;
|
| protocol.registerSchemesAsPrivileged([
@ multi ./node_modules/electron-webpack/out/electron-main-hmr/main-hmr ./src/main/main.ts main[1]
step:任意空目录下执行
命令行报错
electron弹出错误窗口:
看起来像是没有把main.ts给编译到src/.umi/main/main.js,手动编译一次复制过去后正常
The text was updated successfully, but these errors were encountered: