I have a file src/client/main.tswith this code:
import * as lunr from 'lunr';
console.log('main');
I set dt captions for lunr typings install dt~lunr --save --globals
My tsconfig.json file has the following selectors:
"filesGlob": [
"src/**/*.ts"
],
"files": [
"typings/index.d.ts"
]
Why doesn't the typescript compiler find a module lunr? The compiler always outputserror TS2307: Cannot find module 'lunr'
jobou source
share