codemods
codemods copied to clipboard
"Cannot set property 'node' of undefined" - solution
Hi guys, I just wanted to mention an issue I ran into while using codemods script. After running the npx @strapi/codemods migrate
command I received an error Cannot set property 'node' of undefined
.
It turned out my package.json
file was missing the "engines": {}
part and in the codemods update-package-dependencies.js
these lines were causing it:
I hope it's going to help someone.