Thursday 20 April 2017

TypeScript compiler won't find node module I installed

I try to separate Angular 2 module I created and import it back to app using npm, but I keep running into problems with it. Right now I'm stuck with error TS2307: Cannot find module 'preloader' I added

"paths": {
  "preloader": ["../node_modules/angular2-resource-preloader/dist/"]
}

to my tsconfig and dist folder contains .d.ts files. I also added "types" property to module package.json, but I keep getting error TS2307.



via Flappy

No comments:

Post a Comment