-
-
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
Build fails with @babel/preset-env 7.4.0 #3671
Comments
Related babel commit: babel/babel@3303b07 |
I have the same issue. Full error output looks like
|
This PR was merged 2 hours ago & includes a commit that deleted the built-ins.json file. PR: babel/babel#7646 EDIT: Oh sorry, @AegirLeet already mentioned the commit 🤐 |
Edit: I forgot to specify the file |
A PR has been open bringing back isPluginRequired but won't fix the built-ins.json issue. |
In the meantime adding |
Can confirm, does work! :) |
I created a quick PR #3673 but I'm not sure if is is an adequate solution. |
Just done a fresh
|
Ok, |
Could anyone try to
|
@nicolo-ribaudo Yeah, that seems to fix the issue. |
Fixes vuejs/vue-cli#3671 Even if it has the `.js` extension, `require("@babel/preset-env/data/built-ins.json")` will still work.
On the broken repo I added "@babel/preset-env": "^7.3.4", but it did not help.
|
We just released |
Can confirm |
No I get the other error:
|
What does |
|
|
|
No change. :/ |
Does |
Yes |
I had to delete |
@AegirLeet |
@nicolo-ribaudo I've added a note at the top. |
@stevenroussey-desiclabs Yeah, we had to introduce a deprecation warning to prevent people from accidentally generating imports to |
Should |
You don't need to add |
@nicolo-ribaudo I created a new PR with the correct built-ins path and a dependency bump to Edit: I'm not sure why the build is failing on my PR. I have no more time on hand so if anyone wants to continue, feel free. |
I guess change these lines? https://github.com/vuejs/vue-cli/blob/dev/package.json#L80 (to 7.4.1) |
2 is fine (I don't know this project well enough to say if updating to 3 would be a breaking change). You need to copy that line to |
I do think you did something right. |
If you are using |
Hi, I just ran into this very same issue. I have the 3.5.3 cli. According to the release notes that version fixes these issues. Not so much in my experience :( Now, despite a range of solutions that have been posted here, I actually have no clue how i can fix this.. I have installed the cli with: As per most guides on how to use vue (have it installed globally). So what should i change now - and where? - to get this working? Thank you :) |
|
This has been fixed in
@babel/preset-env@7.4.1
. You will need to deleteyarn.lock
/package-lock.json
and runyarn
/npm i
again.Version
3.5.1
Environment info
Steps to reproduce
What is expected?
A successful build.
What is actually happening?
The build fails because
@babel/preset-env/data/built-ins.json
can't be found. It seems this file doesn't exist anymore as of @babel/preset-env 7.4.0.The text was updated successfully, but these errors were encountered: