Unable to compile in a typescript project
See original GitHub issueWhat are you doing?
I’m compiling my typescript project.
tsc
What do you expect to happen?
Compile successfully
What is actually happening?
Failing with failed type declaration missings.
node_modules/sequelize/types/lib/promise.d.ts(2,27): error TS7016: Could not find a declaration file for module 'bluebird'. '/opt/api/node_modules/bluebird/js/release/bluebird.js' implicitly has an 'any' type.
Try `npm install @types/bluebird` if it exists or add a new declaration (.d.ts) file containing `declare module 'bluebird';`
node_modules/sequelize/types/lib/utils/validator-extras.d.ts(2,22): error TS7016: Could not find a declaration file for module 'validator'. '/opt/api/node_modules/validator/index.js' implicitly has an 'any' type.
Try `npm install @types/validator` if it exists or add a new declaration (.d.ts) file containing `declare module 'validator';`
Dialect: any Sequelize version: 5.1.0 Tested with latest release: Yes
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Error: TSError: Unable to compile TypeScript - Stack Overflow
My Project is built on Angular4 with typescript, e2e testing with protractor & karma. Travis-ci has this error: [03:34:54] E/launcher - Error: ...
Read more >TSError: Unable to compile TypeScript after version `10.1.0 ...
After upgrading from version 10.0.3 to 10.1.0 cypress shows this error. The typescript file seems to be ignored, the project works fine with...
Read more >I got Unable to compile TypeScript error - CircleCI Discuss
One thing you can do to ensure this is to make sure your executor has Java runtime set up. Based on your config,...
Read more >TypeScript Compiling with Visual Studio Code
A tsconfig.json file defines the TypeScript project settings, such as the compiler options and the files that should be included. To do this,...
Read more >Troubleshooting | ts-node - TypeStrong · GitHub
ts-node also respects your locally-installed typescript version, ... Solution: configure your project to compile and execute as native ESM.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We haven’t defined these packages as dependencies to avoid bloating non-ts installations, please install
@types/bluebird
and@types/validator
separately.Ah yes, having the types in the devDependencies when they might also be used in production might not be the best thing. I will discuss this with the team. Thanks for your quick response