Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -…#15465
Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -…#15465techknowlogick merged 3 commits intogo-gitea:masterfrom
Conversation
|
Ah, this could be a issue with Node's ESM resolution. Wich node version were you encountering this? Perhaps 12? Because I think I only tested this on 14 and 15. |
|
fwiw I ran into this exact error yesterday. If this fix is more permanent, that's great. 🙂 |
|
@jolheiser good to know. Our minimum Node version is 12.17.0 so we should either require the higher version that fixed these resolutions or make them compatible with 12.17.0. I will check later if we have other code that would need such treatment as well. |
|
Looks like 12.20 is the version with the fix:
|
|
I think we can go with this fix for broader node compatibilty. Happy to approve after the suggestion above is merged. I see that build scripts suffer a similar issue under node 12, will send a PR for those as well. |
|
Can someone with push rights merge above suggestion so I can approve? :) |
Co-authored-by: silverwind <me@silverwind.io>
|
does this need backporting? |
|
no, esm is only on master. |
|
🚀 |
when I execute
TAGS="bindata" make buildto build gitea, it shows:npx webpack make: *** [Makefile:699: public/js/index.js] Error -1073741819