Skip to content
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

Plugin does not work with latest version of vue-cli #9

Open
scottbedard opened this issue Feb 7, 2019 · 1 comment · May be fixed by #11
Open

Plugin does not work with latest version of vue-cli #9

scottbedard opened this issue Feb 7, 2019 · 1 comment · May be fixed by #11

Comments

@scottbedard
Copy link

scottbedard commented Feb 7, 2019

With the latest version of vue-cli, it appears that the webpack config is not being passed to karma anymore. The test:unit command fails with the following output...

yarn run v1.9.4
$ vue-cli-service test:unit
07 02 2019 10:52:59.549:ERROR [preprocess]: Can not load "webpack", it is not registered!
  Perhaps you are missing some plugin?

START:
07 02 2019 10:52:59.592:ERROR [karma]: Error: Found 1 load error
    at Server.webServer.listen (/code/vue-karma-bug/node_modules/karma/lib/server.js:170:27)
    at Object.onceWrapper (events.js:273:13)
    at Server.emit (events.js:187:15)
    at emitListeningNT (net.js:1320:10)
    at process._tickCallback (internal/process/next_tick.js:63:19)
(node:33720) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated
Karma has exited with 1
 ERROR  1
error Command failed with exit code 1.

See reproduction repo at https://github.com/scottbedard/vue-karma-bug

Any help with this issue would be appreciated!

Update: Just investigated this a bit, and it appears that things stopped working with vue-cli 3.1.0

@tushararora
Copy link

@scottbedard

Here is a new plugin I created since this repository has become inactive now: https://github.com/tushararora/vue-cli-plugin-unit-karmajs

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

Successfully merging a pull request may close this issue.

2 participants