由于我使用了Electron forge webpack 插件,所以当我执行时npm start,它会在编译预加载脚本步骤之后导致错误。它说错误在 Forge 内部。
我检查了一下,这是文件观察器 api 中的错误,mainCompilation.fileSystemInfo未定义,因此它无法读取 prop createSnapShot 函数。
我应该怎么做才能解决此错误并启动我的应用程序?
日志:
> datapack-planet@0.0.0 start D:\program\datapack-planet
> electron-forge start
? Checking your system
? Locating Application
You have set packagerConfig.ignore, the Electron Forge webpack plugin normally sets this automatically.
Your packaged app may be larger than expected if you dont ignore everything other than the '.webpack' folder
? Preparing native dependencies
? Compiling Main Process Code
? …Run Code Online (Sandbox Code Playgroud)