-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Error with npm run test (karma start) #901
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
Comments
See also angular/zone.js#404 |
I also get this error, in the |
I changed a few things with the starter, and this appears to work. I make the
Then I changed the following in the
|
@egervari can you make a pull-request? |
@egervari |
awcodify
pushed a commit
to awcodify/d3-angular-4
that referenced
this issue
Aug 28, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
I want to report a bug with karma test on the latest RC5
When you run npm test in the console, you get the following error
ERROR in ./karma-shim.js
Module not found: Error: Cannot resolve module 'zone.js/dist/proxy-zone' in /Users/lgarro/Documents/starter/angular2-webpack-master
@ ./karma-shim.js 12:0-34
webpack: bundle is now VALID.
25 08 2016 14:10:38.469:INFO [karma]: Karma v1.1.2 server started at http://localhost:9876/
25 08 2016 14:10:38.471:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
25 08 2016 14:10:38.478:INFO [launcher]: Starting browser PhantomJS
25 08 2016 14:10:39.035:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket /#putuvgbU1fkhCjOdAAAA with id 85751166
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
Error: Cannot find module "zone.js/dist/proxy-zone"
at undefined:12
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
Error: Cannot find module "zone.js/dist/proxy-zone"
at undefined:12
Finished in 0.144 secs / 0 secs
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
Steps to reproduce:
1- Open up starter in the ide of your choice
2- Run npm install to install dependencies
3-Run "npm run test"
Basic tests included in the starter should pass, and no error should be shown in the console
Run tests
OS: OSX El capitan
Browser: chrome
"dependencies": {
"@angular/common": "2.0.0-rc.5",
"@angular/compiler": "2.0.0-rc.5",
"@angular/core": "2.0.0-rc.5",
"@angular/forms": "0.3.0",
"@angular/http": "2.0.0-rc.5",
"@angular/platform-browser": "2.0.0-rc.5",
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
"@angular/router": "3.0.0-rc.1",
"es6-shim": "^0.35.0",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12"
}]
The text was updated successfully, but these errors were encountered: