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

Update to ionic beta 2 fails to find /base/ionic-angular.js #25

Closed
juliocbcotta opened this issue Mar 1, 2016 · 2 comments
Closed

Update to ionic beta 2 fails to find /base/ionic-angular.js #25

juliocbcotta opened this issue Mar 1, 2016 · 2 comments

Comments

@juliocbcotta
Copy link
Contributor

I migrated to the latest version of this repo and to the ionic beta 2, this is the log of npm test

[20:37:37] Requiring external module ts-node/register
[20:37:40] Using gulpfile ~/git/platypus/gulpfile.ts
[20:37:40] Starting 'test'...
[20:37:40] Starting 'test.clean'...
[20:37:40] Starting 'test.lint'...
[20:37:40] Deleted /home/bunny/git/platypus/www/build/test
[20:37:40] Finished 'test.clean' after 601 ms
[20:37:42] Finished 'test.lint' after 2.04 s
[20:37:42] Starting 'test.copyHTML'...
[20:37:42] Finished 'test.copyHTML' after 28 ms
[20:37:42] Starting 'test.build'...
/home/bunny/git/platypus/node_modules/angular2/src/facade/promise.d.ts(1,10): error TS2661: Cannot re-export name that is not defined in the module.
[20:37:44] TypeScript: 1 semantic error
[20:37:44] TypeScript: emit succeeded (with errors)
[20:37:44] Finished 'test.build' after 2.22 s
[20:37:44] Starting 'startKarma'...

START:
01 03 2016 20:37:45.953:INFO [karma]: Karma v0.13.21 server started at http://localhost:9876/
01 03 2016 20:37:45.962:INFO [launcher]: Starting browser PhantomJS
01 03 2016 20:37:46.340:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket /#jk37rgg1cpRnKrSRAAAA with id 34111882
PhantomJS 2.1.1 (Linux 0.0.0) WARN: 'DEPRECATION WARNING: 'enqueueTask' is no longer supported and will be removed in next major release. Use addTask/addRepeatingTask/addMicroTask'
01 03 2016 20:37:46.667:WARN [web-server]: 404: /base/ionic-angular.js
01 03 2016 20:37:46.717:WARN [web-server]: 404: /base/ionic-angular.js
PhantomJS 2.1.1 (Linux 0.0.0) ERROR: 'http://localhost:9876/base/node_modules/systemjs/dist/system.src.js?281591da6090abed69cd0b080aa69c8de089a41c:733:14
run@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?87bbeaae4d01ebf513e1bbea41a0e13dbad92eb4:1217:29
zoneBoundFn@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?87bbeaae4d01ebf513e1bbea41a0e13dbad92eb4:1194:29
lib$es6$promise$$internal$$tryCatch@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?87bbeaae4d01ebf513e1bbea41a0e13dbad92eb4:442:25
lib$es6$promise$$internal$$invokeCallback@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?87bbeaae4d01ebf513e1bbea41a0e13dbad92eb4:454:53
lib$es6$promise$$internal$$publish@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?87bbeaae4d01ebf513e1bbea41a0e13dbad92eb4:425:53
lib$es6$promise$$internal$$publishRejection@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?87bbeaae4d01ebf513e1bbea41a0e13dbad92eb4:375:42
http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?87bbeaae4d01ebf513e1bbea41a0e13dbad92eb4:97:12
run@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?87bbeaae4d01ebf513e1bbea41a0e13dbad92eb4:1217:29
zoneBoundFn@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?87bbeaae4d01ebf513e1bbea41a0e13dbad92eb4:1194:29
lib$es6$promise$asap$$flush@http://localhost:9876/base/node_modules/zone.js/dist/zone-microtask.js?87bbeaae4d01ebf513e1bbea41a0e13dbad92eb4:236:18'

Finished in 0.142 secs / 0 sec

I tried to configure these paths, but failed to reference it. :-/

01 03 2016 20:37:46.667:WARN [web-server]: 404: /base/ionic-angular.js
01 03 2016 20:37:46.717:WARN [web-server]: 404: /base/ionic-angular.js
@juliocbcotta
Copy link
Contributor Author

Yes, the way you import the ionic-angular stuff solves the problem. \o/
Would you mind to explain why? What is the difference? I mean, in the changelog they say to use just

import {Platform} from 'ionic-angular';

not

import {Platform} from 'ionic-angular/index';

@lathonez
Copy link
Owner

lathonez commented Mar 2, 2016

see #27 - no idea. I'm hoping moving toward Angular2 Seed will sort things out, they seem to have better dependency management with Karma/

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

No branches or pull requests

2 participants