Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

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

Open
sarevok89 opened this issue Nov 25, 2022 · 1 comment
Open

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

sarevok89 opened this issue Nov 25, 2022 · 1 comment

Comments

@sarevok89
Copy link

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.

@markkaylor
Copy link
Contributor

Thanks @sarevok89, I think replacing this with something like lodash set could work, and lodash is already in the repo.

Any chance you would have the time to open a PR for that or propose another solution? If not I will try to find the time to make the update.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants