codemods icon indicating copy to clipboard operation
codemods copied to clipboard

"Cannot set property 'node' of undefined" - solution

Open sarevok89 opened this issue 1 year ago • 1 comments

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:

image

I hope it's going to help someone.

sarevok89 avatar Nov 25 '22 07:11 sarevok89