Quantcast
Channel: Active questions tagged require - Stack Overflow
Viewing all articles
Browse latest Browse all 143

Could not find a declaration file for module 'jsonwebtoken'. -pathname- implicitly has an 'any' type

$
0
0

So i was working on a backend project, using node and express,I need to use the json web token, after npm i jsonwebtoken i get in my node_modules.But the problem is this when i require that module in my project is says :Could not find a declaration file for module 'jsonwebtoken'. 'c:/Web Development/Odin Project/Projects/Blog_Api/backend_api/node_modules/jsonwebtoken/index.js' implicitly has an 'any' type.Try npm i --save-dev @types/jsonwebtoken if it exists or add a new declaration (.d.ts) file containing declare module 'jsonwebtoken';ts(7016)":Also before the module i see 3 dots.Kindly help

I have tried installing it as a dev depedencies but no luck.I have watched tutorials about using json web token and they didn't face this issue.


Viewing all articles
Browse latest Browse all 143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>