Vue-cli: Command vue-cli-service test:unit failing when file import vue-resource

Created on 2 Nov 2018  路  2Comments  路  Source: vuejs/vue-cli

Version
3.1.1

Reproduction link
https://gist.github.com/afucher/0f23d4225b1060398ef235febb52be5d

Node and OS info
Node v8.9.4 / npm 5.6.0 / Linux Mint 18.1

Steps to reproduce
Create a hello-world project with vue-cli using mocha for tests. Add 'vue-resource' as a project dependency and import to 'vue-resource' in test file. Run > npm run test:unit

What is expected?
The test run .

What is actually happening?
WEBPACK Failed to compile with 1 error(s)

Error in ./node_modules/got/index.js

Module not found: 'electron' in '/disk2/projetos/hello-world2/node_modules/got'

All 2 comments

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!

What? I just use the Issue Helper and then copy and paste the text here.

Was this page helpful?
0 / 5 - 0 ratings