Aurelia sample - .d.ts reference question
Greetings,
I am trying to get this sample to work in WebStorm 10.0.3 EAP.
https://github.com/cmichaelgraham/aurelia-typescript/tree/typescript-1-5-port/skel-nav-require-webstorm-ts
I believe that the compiler is configured correctly, but it isn't picking up the project's .d.ts files
Any guidance you can provide would be greatly appreciated.
Thanks,
-Mike Graham @cmichaelgraham
Please sign in to leave a comment.
You need adding the corresponding ///<reference path> comments to your .ts files.
See the discussion at https://gitter.im/Aurelia/Discuss/archives/2015/01/12
For example, you need to add
to app.ts and
to aurelia-router.d.ts to let the compiler know where to look for type definitions
I have same issue. I do not add any comments, and fix it:
1. Add original `.d.ts` file from `node_modules` to my `types` folder
2. Wait to no modules errors in IDE
3. Remove `.d.ts` ftom my `types` folder
4. All works fine... magic )