Skip to content
New issue

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

Could not find the declaration file under "Node16" or higher #119

Closed
truemogician opened this issue Nov 16, 2022 · 2 comments
Closed

Could not find the declaration file under "Node16" or higher #119

truemogician opened this issue Nov 16, 2022 · 2 comments

Comments

@truemogician
Copy link
Contributor

Issue

The exports field in package.json is kind of misconfigured, since it misses types, leading to the following error when setting moduleResolution to Node16 or NodeNext in tsconfig.json:

error TS7016: Could not find a declaration file for module 'filemanager-webpack-plugin'

Here is a comment from TypeScript that explains this issue: TypeScript module "Node16" does not resolve types of CJS module
Simply adding types in exports could address this issue.

Your Environment

Tech Version
filemanager-plugin-webpack 7.0.0
node ^16.0.0
truemogician added a commit to truemogician/filemanager-webpack-plugin that referenced this issue Nov 16, 2022
@sibiraj-s
Copy link
Collaborator

Fixed in #120

@sibiraj-s
Copy link
Collaborator

published in v8.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants