Vue-cli: Failed to resolve babel-loader

Created on 25 Sep 2018  路  4Comments  路  Source: vuejs/vue-cli

Version

3.0.4

Node and OS info

Node 10.8.0 / yarn 1.9.4 / macOS 10.13.6

Steps to reproduce

vue create testing
select the all given plugins
yarn run build

What is expected?

generate built files

What is actually happening?

Failed to resolve loader: babel-loader
You may need to install it.

bug now e2e-cypress work-in-progress

Most helpful comment

Both @vue/cli-plugin-babel & @vue/cli-plugin-e2e-cypress depends on babel-loader, but somehow yarn does not hoist the common dependency and installs them in the nested folders instead.
For now you can manually run yarn add -D babel-loader to solve the problem.

All 4 comments

Both @vue/cli-plugin-babel & @vue/cli-plugin-e2e-cypress depends on babel-loader, but somehow yarn does not hoist the common dependency and installs them in the nested folders instead.
For now you can manually run yarn add -D babel-loader to solve the problem.

Same here!

Yes its so frustating issue. I reinstalled it thinking I have done something wrong :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xrei picture xrei  路  40Comments

joeirimpan picture joeirimpan  路  35Comments

dimavolo picture dimavolo  路  75Comments

yyx990803 picture yyx990803  路  80Comments

williamstar picture williamstar  路  79Comments