-
Notifications
You must be signed in to change notification settings - Fork 86
Netlify NextJS builds are broken in 3.7.0 when using multiple npm commands #528
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
Comments
I think it may be a result of b1fd513 |
3.7.0 causes issues for me as well when I use multiple npm scripts. |
Hi both! Thanks for the report. I've isolated the issue and opened a PR with a fix and should have that released later today. |
This is now published in 3.7.1. Can you check that this fixes it for you? I've added your specific command as a test case too. |
Thanks for attending to this so quick. For some reason when building it in Netlify it's still picking up 3.7.0 at the latest version. I guess it takes a little while to propagate the new version. Will let you know once I can test this properly. |
Yeah, we don't immediately update the auto-installed version, in case issues come up. It'll be auto-installed later today, but you can try it now by installing |
If you do a build now it should use the new version of the plugin. |
That's now working fine, thank you! |
Describe the bug
A bug has been introduced with version 3.7.0 where if the
netlify.toml
configuration file contains multiple npm commands such asnpm run build && npm run export
, the plugin fails with an internal error.To Reproduce
Steps to reproduce the behavior:
netlify.toml
file).npm install @netlify/[email protected] --save-dev
Example at: https://app.netlify.com/sites/elated-mcclintock-cdc73c/deploys
Expected behavior
The build should still work in v3.7.0
Versions
If you're using file-based installation
(this also occurs for multiple yarn commands too)
The text was updated successfully, but these errors were encountered: