Skip to content
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

Netlify Deploy Fail Since new Gatsby CLI update #11609

Closed
joebentaylor opened this issue Feb 6, 2019 · 7 comments
Closed

Netlify Deploy Fail Since new Gatsby CLI update #11609

joebentaylor opened this issue Feb 6, 2019 · 7 comments
Labels
stale? Issue that may be closed soon due to the original author not responding any more. status: needs more info Needs triaging and reproducible examples or more information to be resolved type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@joebentaylor
Copy link

joebentaylor commented Feb 6, 2019

Hi, today i upgraded gatsby to the latest version, and ever since then ive had major issues...

Ive had to stop using NPM as the site wont build locally anymore and had to use yarn to fix this.

But, the biggest issue now is when i run the build inside of Netlify i get this build fail:

10:35:15 PM:   Error: ./src/scss/app.scss
10:35:15 PM:   Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.j  s):
10:35:15 PM:   ModuleBuildError: Module build failed (from ./node_modules/css-loader/index.js  ):
10:35:15 PM:   Error: Cannot find module 'lodash.camelcase'
10:35:15 PM:       at Function.Module._resolveFilename (module.js:548:15)
10:35:15 PM:       at Function.Module._load (module.js:475:25)
10:35:15 PM:       at Module.require (module.js:597:17)
10:35:15 PM:       at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache  .js:159:20)
10:35:15 PM:       at Object.<anonymous> (/opt/build/repo/node_modules/css-loader/lib/compile  -exports.js:1:79)
10:35:15 PM:       at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compi  le-cache.js:178:30)
10:35:15 PM:       at Object.Module._extensions..js (module.js:664:10)
10:35:15 PM:       at Module.load (module.js:566:32)
10:35:15 PM:       at tryModuleLoad (module.js:506:12)
10:35:15 PM:       at Function.Module._load (module.js:498:3)
10:35:15 PM:       at Module.require (module.js:597:17)
10:35:15 PM:       at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache  .js:159:20)
10:35:15 PM:       at Object.<anonymous> (/opt/build/repo/node_modules/css-loader/lib/loader.  js:8:22)
10:35:15 PM:       at Module._compile (/opt/build/repo/node_modules/v8-compile-cache/v8-compi  le-cache.js:178:30)
10:35:15 PM:       at Object.Module._extensions..js (module.js:664:10)
10:35:15 PM:       at Module.load (module.js:566:32)
10:35:15 PM:       at runLoaders (/opt/build/repo/node_modules/webpack/lib/NormalModule.js:30  1:20)
10:35:15 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
10:35:15 PM:       at /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:367:11
10:35:15 PM:       at /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:172:11
10:35:15 PM:       at loadLoader (/opt/build/repo/node_modules/loader-runner/lib/loadLoader.j  s:32:11)
10:35:15 PM: Shutting down logging, 35 messages pending

I have no clue where to start. Someone help!!! :(

@joebentaylor joebentaylor changed the title Netlofy Deploy Fail Since new Gatsby CLI update Netlify Deploy Fail Since new Gatsby CLI update Feb 6, 2019
@DSchau
Copy link
Contributor

DSchau commented Feb 6, 2019

Does your code depend on a dependency (lodash.camelcase) that isn't installed?

Are you able to build this code locally i.e. outside of Netlify?

@joebentaylor
Copy link
Author

Not that i know of. And can build it totally fine no problems outside of netlify

@joebentaylor
Copy link
Author

Its literally only since updating the Gatsby CLI that this has become an issue

@JustFly1984
Copy link

@joebentaylor can you run npm ls lodash.camelcase or yarn list lodash.camelcase ? it will tell you which dependency is it. Also it could help if you remove ^ from all semver of your dependencies and devDependencies, remove package-lock.json, yarn.lock and node_modules, run npm i or yarn again, and build locally. Possible that you have some dependencies in devDependencies, and you need to move them. Netlify could skip devDependencies installation on NODE_ENV=production.

@DSchau
Copy link
Contributor

DSchau commented Feb 7, 2019

Also linking to the build history (e.g. the Netlify build logs) would be helpful, as well as providing a reproduction, e.g. a copy of the repo on Github or elsewhere where we can try to reproduce.

@sidharthachatterjee sidharthachatterjee added type: question or discussion Issue discussing or asking a question about Gatsby status: needs more info Needs triaging and reproducible examples or more information to be resolved labels Feb 8, 2019
@gatsbot
Copy link

gatsbot bot commented Mar 1, 2019

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

Thanks for being a part of the Gatsby community! 💪💜

@gatsbot gatsbot bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Mar 1, 2019
@gatsbot
Copy link

gatsbot bot commented Mar 12, 2019

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.

Thanks again for being part of the Gatsby community!

@gatsbot gatsbot bot closed this as completed Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale? Issue that may be closed soon due to the original author not responding any more. status: needs more info Needs triaging and reproducible examples or more information to be resolved type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

4 participants