Conversation
Updated this to work it in lower versions of node js 16
|
facing same issue here |
you can follow this for temporary solution: /opt/dist/node_modules/@so-ric/colorspace/dist/index.cjs.js:1976 npm install patch-package postinstall-postinstall --save-dev "scripts": {
node_modules/@so-ric/colorspace/dist/index.cjs.js (limiters[m] ||= [])[channel] = modifier; limiters[m] = limiters[m] || []; if (Object.hasOwn(cssKeywords, name)) { Replace with: if (Object.prototype.hasOwnProperty.call(cssKeywords, name)) { if (!Object.hasOwn(cssKeywords, match[1])) { if (!Object.prototype.hasOwnProperty.call(cssKeywords, match[1])) { npx patch-package @so-ric/colorspace |
|
If I’m not wrong, you’re modifying the build output, so it’s not a reliable solution. I managed to solve this issue by restoring a previous version of my package-lock.json (it's important to keep it in your repo), so npm resolves to an older version of the package. This will probably work for me until I can move to Node 22. |
|
Any idea if the repo owner is looking into it? moving back to the older version will that even help ? looks like the parent library should remove ^ from this package and keep a stable version |
|
@alekstrust Would you happen to know what the solution is for a fresh project without an existing package-lock.json? |
|
Well for a fresh project you should start with the latest version of node and you won't have any issues. If you can't do that, what library are you using that's including this package? |
Updated this to work it in lower versions of node js 16