TypeError: Cannot read property 'some' of undefined in yoga-layout
See original GitHub issueDescription
I get this exception thrown at me:
/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
TypeError: Cannot read property 'some' of undefined
at Array.include (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/gatsby/dist/utils/webpack-utils.js:200:39)
at Object.str [as resource] (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/webpack/lib/RuleSet.js:95:17)
at RuleSet._run (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/webpack/lib/RuleSet.js:492:30)
at RuleSet._run (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/webpack/lib/RuleSet.js:547:10)
at RuleSet.exec (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/webpack/lib/RuleSet.js:475:8)
at asyncLib.parallel (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/webpack/lib/NormalModuleFactory.js:270:34)
at /Users/raisedadead/DEV/freeCodeCamp/client/node_modules/neo-async/async.js:6883:13
at normalResolver.resolve (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/webpack/lib/NormalModuleFactory.js:215:9)
at doResolve (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/enhanced-resolve/lib/Resolver.js:160:12)
at hook.callAsync (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/enhanced-resolve/lib/Resolver.js:237:23)
at _fn0 (eval at create (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:12:1)
at resolver.doResolve (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:36:23)
at hook.callAsync (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/enhanced-resolve/lib/Resolver.js:237:23)
at _fn0 (eval at create (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:12:1)
at hook.callAsync (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/enhanced-resolve/lib/Resolver.js:237:23)
at _fn0 (eval at create (/Users/raisedadead/DEV/freeCodeCamp/client/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
Steps to reproduce
Updated gatsby and plugins to latest versions:
> gatsby info
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.10.1 - ~/.nvm/versions/node/v10.16.0/bin/npm
Languages:
Python: 2.7.16 - /usr/local/bin/python
Browsers:
Chrome: 75.0.3770.100
Firefox: 67.0.4
Safari: 12.1.1
npmPackages:
gatsby: ^2.13.41 => 2.13.41
gatsby-cli: ^2.7.20 => 2.7.20
gatsby-link: ^2.2.3 => 2.2.3
gatsby-plugin-create-client-paths: ^2.1.3 => 2.1.3
gatsby-plugin-google-fonts: ^1.0.1 => 1.0.1
gatsby-plugin-manifest: ^2.2.4 => 2.2.4
gatsby-plugin-react-helmet: ^3.1.2 => 3.1.2
gatsby-plugin-sitemap: ^2.2.3 => 2.2.3
gatsby-remark-prismjs: ^3.3.3 => 3.3.3
gatsby-source-filesystem: ^2.1.6 => 2.1.6
gatsby-transformer-remark: ^2.6.9 => 2.6.9
npmGlobalPackages:
gatsby-cli: 2.7.0
Expected result
gatsby develop should not throw errors
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Netlify Deploy Fails - gatsby - Stack Overflow
According to this GitHub issue the problem comes from having gatsby-cli in your dependencies, which is not necessary and in this case ...
Read more >TypeError: Cannot read property 'activities' of undefined
I need advice to debug deploy https://app.netlify.com/sites/epic-sammet-97acf3/deploys/5ea68c895418c36f1b1d72e2 Build is failing which is ...
Read more >How to Fix Uncaught TypeError: Cannot read properties of ...
Uncaught TypeError : Cannot read propertyIf you're a JavaScript developer, you've probably seen this error more than you care to admit.
Read more >can not read properties of undefined | reading state error in react
Join this channel to get access to perks:https://www.youtube.com/channel/UCoSpmr2KNOxjwE_B9ynUmig/joinMy GearCamera ...
Read more >typeerror: resolver is not a function at object.apiresolver
The issue i am getting is TypeError: resolver is not a function. I understand it might be a syncronicity issue but for the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@raisedadead I’m reopening because I clearly have a similar error, with “gatsby”: “2.13.62” and a clean state. It happens in dev and somehow kills the dev experience when this happens.
Hey again!
It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m
HUMAN_EMOTION_SORRY
. Please feel free to reopen this issue or create a new one if you need anything else.As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks again for being part of the Gatsby community!