Closed acacha closed 6 years ago
What I'm trying to do is to test My Vue Laravel Components using a vue-cli project created inside Laravel
The problem is a litle bit ankward .... I've created another repo to demonstrate here:
https://github.com/acacha/vue-cli-problem-laravel1
But NO error in this repo! And I don't see any differences
The problem is that you have another .eslintrc
file in your project's root directory, which has conflicting configuration (and may not even be used anywhere?) - in particular, this confi tries to load eslint-plugin-html, which it can't find because it's not even a dependency of your project.
I'll close this since it seems to be related to a misconfiguration of eslint on the user's side.
Version
3.0.1
Reproduction link
https://github.com/acacha/vue-cli-problem-laravel
Node and OS info
node v8.10.0 npm 6.4.1 Ubuntru 18.0.4.1 LTS
Steps to reproduce
Clone the repo provided:
What is expected?
No errors
What is actually happening?
Error Module build failed (from ./node_modules/eslint-loader/index.js): Error: Failed to load plugin html: Cannot find module 'eslint-plugin-html'
I'm trying to test components outside vue-cli folder
See also issue:
https://github.com/vuejs/vue-cli/issues/2539
I followed suggestion to add file vue.config.js:
Please note that the problem arise because test:
https://github.com/acacha/vue-cli-problem-laravel/blob/master/vue/tests/unit/ExampleComponent.spec.js
use a external component;