ui-router / sample-app-angular

UI-Router for Angular - Sample Application (angular-cli)

Home Page:http://ui-router.github.io/sample-app-angular/#/mymessages/inbox/5648b50cc586cac4aed6836f

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

app failed to start with "npm start" command

gaurav341 opened this issue · comments

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.

I am also having the same issue.

commented

I am also having the same issue.

Same problem :(
error

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

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