manuelernestog / weektodo

WeekToDo is a Free and Open Source Minimalist Weekly Planner and To Do list App focused on privacy. Available for Windows, Mac, Linux or online.
https://weektodo.me
GNU General Public License v3.0
1.47k stars 162 forks source link

Cannot be compiled correctly #260

Open JH34tem opened 4 months ago

JH34tem commented 4 months ago

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

Lauryy06 commented 4 months ago

I'm having exactly the same problems, I can't compile the desktop version...

MLIM2023 commented 1 month ago

I also had the same issue, now have you solved that issue?