TypeScript-Node-Starter icon indicating copy to clipboard operation
TypeScript-Node-Starter copied to clipboard

Build fails when using yarn

Open steevehook opened this issue 7 years ago • 4 comments

The build fails and throws several typescript related errors

image

Steps to reproduce:

yarn install

yarn run build or yarn build

steevehook avatar Feb 26 '18 22:02 steevehook

Hmm, I tried to comment out the esModuleInterop and even set it to false and still did fail. Plus if you look into the package.json the ts is up to date to 2.7

steevehook avatar Feb 28 '18 20:02 steevehook

Solution is to remove the node_modules folder present in ./node_modules/@types/connect-mongo folder.

himanshu0137 avatar Mar 22 '18 13:03 himanshu0137

Try: Change the config in tsconfig.json and rebuild

"noImplicitAny": true, => "noImplicitAny": false 

toryemurgovn avatar Apr 19 '18 04:04 toryemurgovn

I fixed using @himanshu0137 suggestion and also updating @types/connect-mongo to 0.0.39.

gianlucaparadise avatar Nov 26 '18 21:11 gianlucaparadise