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

Stock vue template has a Babel error #1659

Closed
gorbypark opened this issue Mar 27, 2019 · 7 comments
Closed

Stock vue template has a Babel error #1659

gorbypark opened this issue Mar 27, 2019 · 7 comments
Assignees
Labels
🚨 ASAP 🐛 Bug 🎒 Bundler Refers to CodeSandbox's In-Browser Bundler

Comments

@gorbypark
Copy link

🐛 bug report

Description of the problem

The stock vue template throws an error. [BABEL] /src/main.js: Invalid Option: corejs is not a valid top-level option. Maybe you meant to use 'targets'? (While processing: "base$0$0")

Link to sandbox: stock vue template

Your Environment

Software Name/Version
Сodesandbox PROD-1553607023-33a33af1a
Browser Chrome 73
Operating System macOS
@gorbypark gorbypark changed the title Stock view template has a Babel error Stock vue template has a Babel error Mar 27, 2019
@AndreasCag
Copy link

AndreasCag commented Mar 27, 2019

Same issue. Today I published article about Vue.js form validations and found that all code examples didn't work.

I found fast fix:
Replace this in package.json


    "@vue/cli-plugin-babel": "^3.4.0",
    "@vue/cli-plugin-eslint": "^3.4.0",
    "@vue/cli-service": "^3.4.0",

To this


    "@vue/cli-plugin-babel": "3.4.0",
    "@vue/cli-plugin-eslint": "3.4.0",
    "@vue/cli-service": "3.4.0",

@LeeChar
Copy link

LeeChar commented Mar 27, 2019

Same issue. Today I published article about Vue.js form validations and found that all code examples didn't work.

I found fast fix:
Replace this in package.json


    "@vue/cli-plugin-babel": "^3.4.0",
    "@vue/cli-plugin-eslint": "^3.4.0",
    "@vue/cli-service": "^3.4.0",

To this


    "@vue/cli-plugin-babel": "3.4.0",
    "@vue/cli-plugin-eslint": "3.4.0",
    "@vue/cli-service": "3.4.0",

It's starting to work properly.but why?

@lbogdan
Copy link
Contributor

lbogdan commented Mar 27, 2019

We're looking into this!

@lbogdan lbogdan added 🐛 Bug 🎒 Bundler Refers to CodeSandbox's In-Browser Bundler 🚨 ASAP labels Mar 27, 2019
@CompuIves
Copy link
Member

Hey! I found the issue, it's related to a recent new release of @vue/cli-plugin-babel. Some new configuration parameters were given to @babel/preset-env since 3.5.2(vuejs/vue-cli@156ef21), but our @babel/preset-env installed in the sandbox was too old and threw a validation error.

I installed a new version of preset-env in the sandbox as a temporary solution, that should be live in ~15min. A long-term solution would be to either add support for lockfiles or to use the babel-preset-env provided by @vue/cli.

@CompuIves
Copy link
Member

The fix is live and the issue should be resolved! Sorry for the inconvenience, I'll make sure to run our CI check periodically and find a better solution for the env preset.

Thanks for the workaround @AndreasCag, that helped a lot with pinpointing the issue!

Let me know if it's fixed for you, then we can close the issue.

@lbogdan
Copy link
Contributor

lbogdan commented Mar 27, 2019

For future reference, the fix commit is 7cb89e2 .

@lbogdan
Copy link
Contributor

lbogdan commented Apr 1, 2019

Closing this, as the lack of feedback signals me this has been solved. Please reopen if that's not the case.

@lbogdan lbogdan closed this as completed Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 ASAP 🐛 Bug 🎒 Bundler Refers to CodeSandbox's In-Browser Bundler
Projects
None yet
Development

No branches or pull requests

5 participants