Peter Jausovec
Peter Jausovec

Jul 15, 2020

·
2 min read
·

How to fix error TS7016: Could not find a declaration file for module ‘XYZ’. ‘file.js’ implicitly has an ‘any’ type

Photo by Jason Leung on Unsplash

If you’re using TypeScript you might have run into this error before. The second part of the error says:

Try `npm install @types/XYZ` if it exists or add a new declaration (.d.ts) file containing `declare module 'XYZ';

--

--

More from Peter Jausovec

https://learncloudnative.com https://startkubernetes.com

Recommended from Medium

Intertech, Inc.

Intertech, Inc.

Angular Development Article Series Preview

Jen-Hsuan Hsieh (Sean)

Jen-Hsuan Hsieh (Sean)

in

A Layman

How does JavaScript work? Part 2. The terms and syntax (includes ES5 and ES6)

hCaptcha

hCaptcha

in

hCaptcha Blog

hCaptcha Now Natively Available in WPForms

Phillip Winder

Phillip Winder

Introduction to this and bind in Javascript

Jérôme Mottet

Jérôme Mottet

in

Better Programming

Why You Should Use Next.js As the Default Framework in React Apps

Blurred ballerina
Gerard van der Put

Gerard van der Put

in

JavaScript in Plain English

Meet Luxon, the new Moment.js killer

PROJECT-CUBE

PROJECT-CUBE

Cek in my link…i hope you buy for donation for my family now in hospital….https://opensea.io/collect

Tommaso De Ponti

Tommaso De Ponti

in

Better Programming

4 Underrated Tools Every Web Developer Should Know

several different kinds of hammers

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Get unlimited access
Peter Jausovec

Peter Jausovec

384 Followers

https://learncloudnative.com https://startkubernetes.com

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech