-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'activities' of undefined in yoga-layout-prebuilt #23214
Comments
It seems like we are hitting similar issues on Getting the following stacktrace on
|
Thank you for opening this! You shouldn't install I cloned your repository, removed the We're marking this issue as answered and closing it for now but please feel free to comment here if you would like to continue this discussion. We also recommend heading over to our communities if you have questions that are not bug reports or feature requests. We hope we managed to help and thank you for using Gatsby! |
Oh, sorry for the false alarm and thank you for the quick reply! |
In my company we got also problem with that error. (but we do not have gatsby-cli in deps) |
Thanks for the quick reply! Personally I think that installing a project specific CLI into global |
@LekoArts : Furthermore, if a patch version of |
I'm also experiencing the same issue, but only have |
I had the same issue on gatsby@2.19.50, upgrading to latest (2.20.24) fixed it. |
your gatsby-cli installed globally, try reinstall it |
I was seeing the same issue in our ci after a package-lock file update, which worked fine locally. gatsby-cli is not in in package.json, but added to package-lock.json as dependency of gatsby. Bumping gatsby version to 2.20.24 (and clean reinstall, reset of package-lock) solved it for me as well. I never saw this on my local environment though. |
Edit: Looks like I fixed this by downgrading to yarn add gatsby@2.20.24 and then doing yarn add gatsby I'm having a similar error. I've tried using npm, yarn, yarn upgrade, deleting yarn.lock, deleting package-lock.json, deleting node_modules, removing gatbsy-cli, installing gatsby-cli globally, adding the yarn PATH to .profile and .bashrc. If I type gatsby -v in my project in terminal it shows: It looks like this when I exit gatsby develop and it also gives me the error if I try to build either on my computer or on netlify. Warning: App: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI. /usr/local/share/.config/yarn/global/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53 TypeError: Cannot read property 'activities' of undefined This is the error on netlify: 10:55:08 PM: /opt/build/repo/node_modules/gatsby-cli/lib/reporter/redux/utils.js:20 |
Hi! I had the exact same issue and fixed it by doing the following:
|
Fixes a TypeError gatsbyjs/gatsby#23214
Btw, gatsby-cli is still an explicit dependency of gatsby, so it gets installed locally no matter what. Am I missing something? |
In my company the devOps time changed the node version inside Dockerfile and it worked. We are using here: Node 14.4.0 |
It took me a while to fix this error. I solved this by:
Now it's fixed, thanks! |
This worked. Development ran fine. And gatsby build worked. |
You must not delete package-lock.json neither update package(-lock).json manually! |
Description
gatsby build and gatsby develop both throw the error above.
Steps to reproduce
git checkout
npm i
./node_modules/.bin/gatsby develop or ./node_modules/.bin/gatsby build
https://github.com/ochronus/ochronus.online-gatsby
Expected result
Gatsby should build the site
Actual result
Gatsby threw an error
Environment
The text was updated successfully, but these errors were encountered: