We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've been trying to import cookieParser, it seems that there are no default exports setup for them.
import cookieParser from 'cookie-parser'; // Does not work
Could not find a declaration file for module 'cookie-parser'. '/node_modules/cookie-parser/index.js' implicitly has an 'any' type.
Expected Outcome:
import cookieParser from 'cookie-parser';
or
import * as cookieParser from 'cookie-parser';
Should import cookieParser
The text was updated successfully, but these errors were encountered:
Hello, and thank you for your report. You can indeed import this module using es6. But the error you are showing is not from javascript/es6, rather from typescript. Here is an article that found which should help you: https://bobbyhadz.com/blog/typescript-could-not-find-a-declaration-file-for-module
Sorry, something went wrong.
No branches or pull requests
I've been trying to import cookieParser, it seems that there are no default exports setup for them.
Could not find a declaration file for module 'cookie-parser'. '/node_modules/cookie-parser/index.js' implicitly has an 'any' type.
Expected Outcome:
or
Should import cookieParser
The text was updated successfully, but these errors were encountered: