-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
npm run build failed after beta.20 to 3.0.0 migration #6654
Comments
We need more information as to the actual error, do you have a link to your project code somewhere like Github or Gitlab? |
Hi. |
npm i -g strapi Still no luck |
Hello @demobo-com . I think I have the same problem as yours (check #6659). I tried a lot of things as you can see in my ticket but none of them worked. I cannot reproduce the issue in a freshly build project. Edit I've found a solution that worked for me: #6659 |
@iCarossio git clone does not work for me. Roll back to 3.0.0-beta.20 then it is working again. Migration:
Here is my package.json |
@demobo-com I did not observe such a problem during the migration of my project. The only thing I deleted the config folder and took from a new project. If only strapi did not have an allergy to macOs :) I also recommend using yarn instead of npm, I have had occasions when building through npm failed. |
P.s. Try upgrading strapi to beta.20.3 first |
@demobo-com Do you have any updates on this? I am getting the same error with system specs similar to yours (Ubuntu instead of macOS). |
Hi all, I just encountered that error today and I'd like to just share about what caused the error, and how I solved it. I didn't push the investigation way further on the reason why this is happening, and how the error message is so misleading. Anyway, I hope that helps someone. |
I had a similar issue to this that was caused by Strapi trying to load swap files Vim was creating in the ./config/functions/ directory. This took a while to debug because the actual error was not being logged or displayed. This has recently been fixed so it displays the actual error. #7388 |
As we haven't seen any reproduction of this in the past few weeks, going to mark as closed. |
Describe the bug
npm run build
Failed after beta.20 to 3.0.0 migration
Steps to reproduce the behavior
Error while running command build: undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! strapi-app@0.1.0 build:
strapi build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the strapi-app@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jlin/.npm/_logs/2020-06-12T22_17_13_223Z-debug.log
Expected behavior
build succeed
Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
If applicable, add code samples to help explain your problem.
System
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: