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

vue-cli init | [.babelrc] Missing helper: "if_or" #794

Closed
andersonaguiar opened this issue Feb 7, 2018 · 6 comments
Closed

vue-cli init | [.babelrc] Missing helper: "if_or" #794

andersonaguiar opened this issue Feb 7, 2018 · 6 comments

Comments

@andersonaguiar
Copy link

Version

3.0.0-alpha.9

Reproduction link

https://d2ffutrenqvap3.cloudfront.net/items/0X3h1G1G381I163G1N3t/Image%202018-02-07%20at%202.50.42%20pm.png?v=a31218fa

Steps to reproduce

vue init webpack common

(enter till the end)

What is expected?

Generate the project

What is actually happening?

vue-cli · [.babelrc] Missing helper: "if_or"

@yyx990803
Copy link
Member

Can't reproduce. I used the exact same prompt options and it works as expected. This seems quite weird because the helper is obviously defined and it's been there for over a month.

Likely a cache related issue, looks like your network fetched some outdated files.

@andersonaguiar
Copy link
Author

andersonaguiar commented Feb 7, 2018

I uninstalled my node, yarn, vue-cli and all related dependencies and installed again, the problem still is happening.

Here is others with the same problem than me:

vuejs-templates/webpack#1188
#627

Any idea?

@andersonaguiar
Copy link
Author

Solved.

yarnpkg/yarn#1321

I was trying to install vue-cli via yarn, but have been unsuccessful.

@andersonaguiar andersonaguiar changed the title Problem to create a project vue-cli init | [.babelrc] Missing helper: "if_or" Feb 7, 2018
@vvo
Copy link

vvo commented Feb 9, 2018

@andersonaguiar does it means vue-cli can't be installed via yarn? Installation for me is "successful" (minor some errors). But then vue init fails at the step you said.

@abrenneke
Copy link

Yeah, same deal here, it seems that vue-cli can't be installed via Yarn. Uninstalling it and reinstalling via npm works fine.

@qwfy5287
Copy link

the same error, use yarn global add @vue/cli

use npm install -g @vue/cli is ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants