Hi all,
When running my unit test for a piece of implementation annotated as Page, the compiled JavaScript throws ionic_angular_1.Page is not a function.
I spent a couple days setting up a build pipeline and used @lathonez setup (GitHub - lathonez/clicker: Ionic 2 + @angular/cli Seed Project : Angular2 + Typescript + Karma + Protractor + Travis) as inspiration. It could be that I missed something.
Does anybody know what the reason is for this exception?
Is there a dependency for dealing with decorators?
Any pointers are appreciated!
Ben
The stracktrace for completeness:
karma.js:87 Error: TypeError: ionic_angular_1.Page is not a function
at eval (http://localhost:9976/base/tmp/final-js/pages/auth/auth.js:52:37)
at execute (http://localhost:9976/base/tmp/final-js/pages/auth/auth.js:59:15)
at Zone.run (http://localhost:9976/base/node_modules/angular2/bundles/angular2-polyfills.js?f0a6e97830784efea38367c499b6b9edc53d5600:1243:24)
at zoneBoundFn (http://localhost:9976/base/node_modules/angular2/bundles/angular2-polyfills.js?f0a6e97830784efea38367c499b6b9edc53d5600:1220:26)
at lib$es6$promise$$internal$$tryCatch (http://localhost:9976/base/node_modules/angular2/bundles/angular2-polyfills.js?f0a6e97830784efea38367c499b6b9edc53d5600:468:17)
at lib$es6$promise$$internal$$invokeCallback (http://localhost:9976/base/node_modules/angular2/bundles/angular2-polyfills.js?f0a6e97830784efea38367c499b6b9edc53d5600:480:18)
at lib$es6$promise$$internal$$publish (http://localhost:9976/base/node_modules/angular2/bundles/angular2-polyfills.js?f0a6e97830784efea38367c499b6b9edc53d5600:451:12)
at http://localhost:9976/base/node_modules/angular2/bundles/angular2-polyfills.js?f0a6e97830784efea38367c499b6b9edc53d5600:123:10
at Zone.run (http://localhost:9976/base/node_modules/angular2/bundles/angular2-polyfills.js?f0a6e97830784efea38367c499b6b9edc53d5600:1243:24)
at zoneBoundFn (http://localhost:9976/base/node_modules/angular2/bundles/angular2-polyfills.js?f0a6e97830784efea38367c499b6b9edc53d5600:1220:26)
at lib$es6$promise$asap$$flush (http://localhost:9976/base/node_modules/angular2/bundles/angular2-polyfills.js?f0a6e97830784efea38367c499b6b9edc53d5600:262:10)
Error loading http://localhost:9976/base/tmp/final-js/pages/auth/AuthExample.spec.jslocalConsole.(anonymous function) @ karma.js:87