microsoft / TypeScript-Node-Starter

A reference example for TypeScript and Node with a detailed README describing how to use the two together.
MIT License
11.31k stars 2.77k forks source link

Build fails when using yarn #90

Open steevehook opened 6 years ago

steevehook commented 6 years ago

The build fails and throws several typescript related errors

image

Steps to reproduce:

yarn install

yarn run build or yarn build

steevehook commented 6 years ago

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

himanshu0137 commented 6 years ago

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

toryemurgovn commented 6 years ago

Try: Change the config in tsconfig.json and rebuild

"noImplicitAny": true, => "noImplicitAny": false 
gianlucaparadise commented 5 years ago

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