-
Notifications
You must be signed in to change notification settings - Fork 12k
Uncaught Error: Missing: SyncTestZoneSpec #2036
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
I have the same problem with Ubuntu 16.04 LTS after changing from [email protected] to the angular-cli@webpack. angular-cli: git master @zackporter92 The official instruction for the change says that some file not needed anymore. One of this file is karma-test-shim.js. Update |
As far as I can see I found the problem. I took a look into angular-cli template files and ended at test.ts (1). This file has one import more than my test.ts file and the order of the imports were different. Now I'm getting an other error which says that a provider for a component can't be found. I think this indicates that the original problem is solved. |
This is currently added in |
The location of that file has been changed: https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/blueprints/ng2/files/__path__/test.ts |
Thanks for the person who deleted the blueprints directory 😡 😡 😡 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Mac El capitan
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: 1.0.0-beta.11-webpack.2
node: 6.2.2
os: darwin x64
do on your code? etc.
I created this app using the webpack 2 version. Since rc6 was released I upgraded to rc6 and modified all the tests to match the new way of doing them with TestBed instead of addProviders.
more information.
Chrome 52.0.2743 (Mac OS X 10.11.6) ERROR
Uncaught Error: Missing: SyncTestZoneSpec
at /Users/porteraz/workspace/travel/travel-client/src/test.ts:59883 <- webpack:///Users/porteraz/workspace/travel/travel-client/~/zone.js/dist/jasmine-patch.js:66:0
Chrome 52.0.2743 (Mac OS X 10.11.6) ERROR
Uncaught Error: Missing: SyncTestZoneSpec
at /Users/porteraz/workspace/travel/travel-client/src/test.ts:59883 <- webpack:///Users/porteraz/workspace/travel/travel-client/~/zone.js/dist/jasmine-patch.js:66:0
According to this github issue in zone.js:
angular/zone.js#404
We need to add the following to the config/karma-test-shim.js (or config/spec-bundle.js):
require('zone.js/dist/proxy'); // since zone.js 0.6.15
require('zone.js/dist/jasmine-patch'); // put here since zone.js 0.6.14
But I can't find a karma-test-shim.js to update.
The text was updated successfully, but these errors were encountered: