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
I tried to compile using npm run release, but an error occurred and I couldn't find 'background. js'
⨯ Application entry file "background. js" in the "/root/weektodo/list/Linux arm64 unpacked/resources/app. sar" does not exist Seems like a wrong configuration Failed Task=build
Then, I tried changing background. js in package. json to src/background.js, this time the packaging was successful, but the runtime still reported an error.
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1183:20)
at Module._compile (node:internal/modules/cjs/loader:1225:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1324:10)
at Module.load (node:internal/modules/cjs/loader:1124:32)
at Module._load (node:internal/modules/cjs/loader:965:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at node:electron/js2c/browser_init:2:122731
at node:electron/js2c/browser_init:2:122934
at node:electron/js2c/browser_init:2:122938
Then, "type" : "module" was tried to use to fix, node-fetch or something was downgraded to 2.6.0 or similar...
Then an error occurred
[Instead change the require of index.js, to a dynamic import() which is available in all CommonJS modules
Please tell us how to fix, thanks
The text was updated successfully, but these errors were encountered:
I tried to compile using npm run release, but an error occurred and I couldn't find 'background. js'
⨯ Application entry file "background. js" in the "/root/weektodo/list/Linux arm64 unpacked/resources/app. sar" does not exist Seems like a wrong configuration Failed Task=build
Then, I tried changing background. js in package. json to src/background.js, this time the packaging was successful, but the runtime still reported an error.
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1183:20)
at Module._compile (node:internal/modules/cjs/loader:1225:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1324:10)
at Module.load (node:internal/modules/cjs/loader:1124:32)
at Module._load (node:internal/modules/cjs/loader:965:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at node:electron/js2c/browser_init:2:122731
at node:electron/js2c/browser_init:2:122934
at node:electron/js2c/browser_init:2:122938
Then, "type" : "module" was tried to use to fix, node-fetch or something was downgraded to 2.6.0 or similar...
Then an error occurred
[Instead change the require of index.js, to a dynamic import() which is available in all CommonJS modules
Please tell us how to fix, thanks
The text was updated successfully, but these errors were encountered: