-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
Fresh default project fails to build #4210
Comments
I am experiencing this same issue as of today. When running
And then the build hangs. |
experiencing this issue as well. |
I'm experiencing the same problem:
For the time being, I disabled source maps as a workaround to get the project built: vue.config.js
|
I am experiencing the same problem. It happens with out-of-the-box projects created with both Babel or Typescript. Create the project. Change to folder and npm run build. Gets the error. EDIT: I have also uninstalled Vue-CLI and gone back and tried each past release going back to 3.7.0, and I am getting the same error on each one. It seems highly unlikely that such a major issue would have slipped through the cracks, so I am not sure where this issue is coming from. Or if perhaps something on my machine is causing the issue? |
No, it's not your machine. The following is just a guess, because I'm not very familiar with Node.js. The issue is probably caused by a breaking change or bug in a new version of a third-party dependency that was just released. NPM dependency management pulls in the latest version of the dependency, no matter which Vue CLI version you are installing. If it's a breaking change, Vue CLI will have to adapt to that change. If it's a bug it will probably fix itself with an update of the dependency. As a temporary fix Vue CLI could declare the dependency with a version restriction. Package-lock.json affects dependency resolution. Now I really don't know anything about that, but I think existing projects might be unaffected even if they update Vue CLI. |
A bug in terser 4.0.1 which was released hours ago.
|
This worked as a solution to the issue! Thanks! |
Fixed in terser 4.0.2 |
* WIP: Improve event type detail view * Try the custom option requests again * Add checkbox to load elapsed events on EventOverview * Add terser version to javascript dependencies to fix build error. More information: https://stackoverflow.com/questions/56820768/unhandled-rejection-error-when-building-vue-js-project * Add terser version to javascript dependencies to fix build error. More information: https://stackoverflow.com/questions/56820768/unhandled-rejection-error-when-building-vue-js-project * Add terser version to javascript dependencies to fix build error. More information: https://stackoverflow.com/questions/56820768/unhandled-rejection-error-when-building-vue-js-project * Terser Bug seems to be fixed in version 4.0.2 Read more: vuejs/vue-cli#4210 (comment)
still this error... I tried to add resolutions but it doesn't work |
Version
3.8.4
Environment info
Steps to reproduce
vue create foo
(use default options)cd foo
npm run build
What is expected?
Successful build.
What is actually happening?
SourceMap error, build hangs.
Dropping in a package-lock.json from yesterday fixed it.
The text was updated successfully, but these errors were encountered: