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

app failed to start with "npm start" command #2

Closed
gaurav341 opened this issue Mar 26, 2017 · 5 comments
Closed

app failed to start with "npm start" command #2

gaurav341 opened this issue Mar 26, 2017 · 5 comments

Comments

@gaurav341
Copy link

gaurav341 commented Mar 26, 2017

ERROR in /node_modules/preact/dist/preact.d.ts (52,28): ',' expected.
/node_modules/preact/dist/preact.d.ts (53,28): ',' expected.
/node_modules/preact/dist/preact.d.ts (52,22): Cannot find name 'keyof'.
/node_modules/preact/dist/preact.d.ts (52,45): Cannot find name 'Pick'.
/node_modules/preact/dist/preact.d.ts (53,22): Cannot find name 'keyof'.
/node_modules/preact/dist/preact.d.ts (53,84): Cannot find name 'Pick'.
webpack: Failed to compile.

@gaurav341 gaurav341 changed the title Got error when run ng serve app failed to start with "npm start" command Mar 26, 2017
@mat307
Copy link

mat307 commented Apr 10, 2017

I am also having the same issue.

1 similar comment
@hxrox
Copy link

hxrox commented Apr 10, 2017

I am also having the same issue.

@yogichauhan
Copy link

Same problem :(
error

@christopherthielen
Copy link
Member

Thanks for the reports. This is caused by ui-router-visualizer which uses the preact library. Preact added typings that are incompatible with typescript 2.0.x

Here's the related issue: preactjs/preact#466 (comment)

I'll see what can be done about this. I believe angular 2.x doesn't support typescript 2.1.x and above. I'll be updating this sample app to use angular 4.x ASAP

@christopherthielen
Copy link
Member

OK this is fixed now. I've also updated the sample app to 1.0.0-beta.5

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

5 participants