Skip to content

Clean Vue.CLI install gives error (vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.) #1345

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

Closed
GordonCopestake opened this issue May 22, 2018 · 15 comments

Comments

@GordonCopestake
Copy link

GordonCopestake commented May 22, 2018

Version

3.0.0-beta.11

Reproduction link

https://github.com/vuejs/vue-cli/blob/dev/docs/README.md

Steps to reproduce

Following current documentation here: https://github.com/vuejs/vue-cli/blob/dev/docs/README.md the following commands are ran on a clean install:

npm install -g @vue/cli

vue create myproject [choose defaults]

cd myproject

npm run serve

What is expected?

Project is compiled and ran with default website showing

What is actually happening?

A compile error

vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.


Seems the VueLoader change from v14 to v15 breaks some things. The default new create project though should be fixed ASAP as it will put off new users

@Akryum
Copy link
Member

Akryum commented May 22, 2018

What is the result of vue inspect?

@GordonCopestake
Copy link
Author

@Akryum
Copy link
Member

Akryum commented May 22, 2018

And the result of yarn list or npm ls?

@GordonCopestake
Copy link
Author

https://pastebin.com/MUf9Lew3

Not sure what those missing ones are as I've done an npm install

@Akryum
Copy link
Member

Akryum commented May 22, 2018

Everything seems fine, try npm run build?

@Akryum
Copy link
Member

Akryum commented May 22, 2018

Also could you try with yarn?

@GordonCopestake
Copy link
Author

@GordonCopestake
Copy link
Author

I'll have to install yarn as I don't use it, is it the yarn list you are after?

@GordonCopestake
Copy link
Author

Yarn list:

https://pastebin.com/uHffxnvz

Tree formatting is a bit off when I piped it to a file sorry

@GordonCopestake
Copy link
Author

Also, yarn run serve and yarn run build also give the same error as npm

@vuejs vuejs deleted a comment from yyx990803 May 22, 2018
@Akryum
Copy link
Member

Akryum commented May 22, 2018

Something strange happened 🐱

@yyx990803 original message:

Cannot reproduce. Can you provide:

Your OS
npm / yarn version
A repository that can actually reproduce the error you are seeing

@GordonCopestake
Copy link
Author

OS : Windows 10 (1803)

npm : 5.6.0

Repository with files that fail (at least for me) : https://github.com/GordonCopestake/Vue.Cli_Issue_1345/

@yyx990803
Copy link
Member

yyx990803 commented May 22, 2018

Just tried a fresh install on Windows 10 with npm 5.6 and it works as expected... unfortunately, there isn't much we can do based on the given information. Feel free to follow up with more information, but closing because this is more likely related to your system rather than a problem in Vue CLI itself.

@GordonCopestake
Copy link
Author

GordonCopestake commented May 22, 2018

OK, thanks. Must be my setup. I'll do a fresh install and go from there

Just for reference, there is a screen capture here of my process: https://youtu.be/tW3xE7py3wQ

@indus
Copy link

indus commented May 30, 2018

I'm getting the exact same error message. On the first run of webpack the error accures only seldom. But when webpack tries to rebuild after a change in a .vue file I get the error every time.
(Windows 7, npm 6.1.0, vue-cli 3.0.0-beta.14)
Feels like some race condition...
The success on an initial run was propably just the cache-loader that picked up the result from the previous run.

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

4 participants