You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd vue
npm install
npm run test:unit
WEBPACK Failed to compile with 1 error(s)
Error in ../resources/js/components/ExampleComponent.vue
Module build failed (from ./node_modules/eslint-loader/index.js):
Error: Failed to load plugin html: Cannot find module 'eslint-plugin-html'
ERROR mocha-webpack exited with code 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue@0.1.0 test:unit: `vue-cli-service test:unit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue@0.1.0 test:unit script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/sergi/.npm/_logs/2018-10-10T09_23_31_834Z-debug.log
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.
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:
#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;
The text was updated successfully, but these errors were encountered: