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
/home/user/sandbox/angular/myproject/node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/packages/angular_devkit/build_angular/src/angular-cli-files/plugins/karma.ts:53
throw new Error(The '@angular-devkit/build-angular/plugins/karma' karma plugin is meant to +
^
Error: The '@angular-devkit/build-angular/plugins/karma' karma plugin is meant to be used from within Angular CLI and will not work correctly outside of it.
at init (/home/user/sandbox/angular/myproject/node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/packages/angular_devkit/build_angular/src/angular-cli-files/plugins/karma.ts:53:11)
Desired functionality
karma start --config=karma.conf.js should just work.
It works if you create a new run configuration. It will detect Cli and use it as Karma engine. If you run an old configuration still pointing to a global/local karma instance, it fails.
This is intended behavior has indicated by the error message:
Error: The '@angular-devkit/build-angular/plugins/karma' karma plugin is meant to be used from within Angular CLI and will not work correctly outside of it.
From @rcomblen on May 4, 2018 12:18
Bug Report or Feature Request (mark with an
x
)Area
Versions
~$ node --version
v8.11.1
~$ npm --version
5.6.0
~$
Repro steps
ng new myproject
The log given by the failure
/usr/bin/node /home/user/.IntelliJIdea2018.1/config/plugins/js-karma/js_reporter/karma-intellij/lib/intellijServer.js --karmaPackageDir=/home/user/sandbox/angular/myproject/node_modules/karma --configFile=/home/user/sandbox/angular/myproject/src/karma.conf.js
/home/user/sandbox/angular/myproject/node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/packages/angular_devkit/build_angular/src/angular-cli-files/plugins/karma.ts:53
throw new Error(
The '@angular-devkit/build-angular/plugins/karma' karma plugin is meant to
+^
Error: The '@angular-devkit/build-angular/plugins/karma' karma plugin is meant to be used from within Angular CLI and will not work correctly outside of it.
at init (/home/user/sandbox/angular/myproject/node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/packages/angular_devkit/build_angular/src/angular-cli-files/plugins/karma.ts:53:11)
Desired functionality
karma start --config=karma.conf.js
should just work.Mention any other details that might be useful
Copied from original issue: angular/devkit#846
The text was updated successfully, but these errors were encountered: