Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac El capitan- Versions. Please run
ng --version. If there's nothing outputted, please run
in a Terminal:node --versionand paste the result here:
angular-cli: 1.0.0-beta.11-webpack.2
node: 6.2.2
os: darwin x64- Repro steps. Was this an app that wasn't created using the CLI? What change did you
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.- The log given by the failure. Normally this include a stack trace and some
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:
https://github.com/angular/zone.js/issues/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.
Thanks! We'll be in touch soon.
I have the same problem with Ubuntu 16.04 LTS after changing from [email protected] to the angular-cli@webpack.
angular-cli: git master
node: 6.2.1, 6.3.1, 6.5.0
os: Ubuntu 16.04 LTS 64 Bit
@zackporter92 The official instruction for the change says that some file not needed anymore. One of this file is _karma-test-shim.js_.
Update
With Node 6.3.1 I get a message that _angular-cli-build.js_ can't be found. Which isn't needed, too, if the instruction manual is correct.
Sry, my first update isn't correct. I didn't link _git master version_ correct.
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 beta.14, under src/test.ts.
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 :rage: :rage: :rage:
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._