Open mgcrea opened 9 years ago
Hi! I only get the exact same error you have if the custom angular 2 type definitions file (typings/_custom/ng2.d.ts) is missing or not referenced properly, because the modules that the compiler complains about are defined in that file.
Can you please make sure that:
Note: Only 2 angular source files are needed which are fetched from CDN and referenced in the index.html and of course the type definitions
I have a similar issue after cloning the repo and bower and npm installing:
[19:08:06] Starting 'compile-ts'...
src/webapp/app/pages/create/create-book.ts(75,21): error TS2339: Property 'parent' does not exist on type 'Router'.
src/webapp/app/pages/list/list-books.ts(33,21): error TS2339: Property 'parent' does not exist on type 'Router'.
src/webapp/app/pages/list/list-books.ts(37,21): error TS2339: Property 'parent' does not exist on type 'Router'.
src/webapp/app/services/BookService.ts(4,66): error TS2307: Cannot find external module 'angular2/http'.
I can see that for the last error in the list there is no http module declared in the ng2.d.ts file. I'm not sure why the other files are complaining about parent not existing in Router.
Any help would be appreciated.
@wrench7 They were just semantic errors, but good point. I've just added the missing type definitions to ng2.d.ts. It should be fine now.
Great, thanks alot! I was having a separate issue with EADDRINUSE (which I've now resolved) so everything's running now :-)
Just cloned your project,
bower i
,npm i
andgulp
and I get:I don't see any angular2 source being pulled somewhere (except the script from the cdn inside index.html).
Tried
$ npm i angular2@2.0.0-alpha.30
but it did not solve the issue