I tried to update gladys on my machine to « dev » and I get this error when I try to start the front-end:
Build [ ] 0% (0.0s) compiling✖ ERROR TypeError: Cannot read properties of undefined (reading 'get')
✖ ERROR TypeError: Cannot read properties of undefined (reading 'get')
at /opt/Gladys/front/node_modules/webpack/lib/DefinePlugin.js:313:38
at SyncHook.eval [as call] (eval at create (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:29:1)
at SyncHook.lazyCompileHook (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/tapable/lib/Hook.js:154:20)
at Compiler.newCompilation (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/webpack/lib/Compiler.js:631:26)
at /home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/webpack/lib/Compiler.js:667:29
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at AsyncSeriesHook.lazyCompileHook (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/tapable/lib/Hook.js:154:20)
at Compiler.compile (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/webpack/lib/Compiler.js:662:28)
at /home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/webpack/lib/Watching.js:77:18
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:33:1)
at AsyncSeriesHook.lazyCompileHook (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/tapable/lib/Hook.js:154:20)
at Watching._go (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/webpack/lib/Watching.js:41:32)
at /home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/webpack/lib/Watching.js:33:9
at Compiler.readRecords (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/webpack/lib/Compiler.js:529:11)
at new Watching (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/webpack/lib/Watching.js:30:17)
at Compiler.watch (/home/jp/.nvm/versions/node/v18.14.0/lib/node_modules/preact-cli/node_modules/webpack/lib/Compiler.js:244:10)
So I just tried on a brand-new clone, since on my branch I’m bringing in some changes.
On node v18, I get the error related to the option NODE_OPTIONS=--openssl-legacy-provider which doesn’t seem to work properly. Downgrading to node v16 and removing the option
Okay, I moved from node v18.14 to 18.15 — I no longer have openssl or webpack errors.
However, I’m no longer compatible with the npm version.
But I now have an error with the tagify library:
ERROR in ../node_modules/@yaireo/tagify/dist/tagify.min.js 305:13
Module parse failed: Unexpected token (305:13)
File was processed with these loaders:
* ../node_modules/babel-loader/lib/index.js
* ../node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
| s = this.dropdown.getHeaderRef(),
| a = this.dropdown.getFooterRef();
> e && s?.parentNode.replaceChild(e, s), i && a?.parentNode.replaceChild(i, a);
| },
| refilter(t) {
I switched to Node 18.16 and npm to v8 because I was on v9 and had a warning. I tried using Volta; I had been using nvm.
But nothing helps, I still get the error