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

Cannot find module 'node-vibrant/node' or its corresponding type declarations when importing `node-vibrant/node' #168

Open
Sandakan opened this issue Dec 27, 2024 · 1 comment

Comments

@Sandakan
Copy link

import { Vibrant } from 'node-vibrant/node';

This is the error i get in VSCode when I try to import 'node-vibrant/node';

Cannot find module 'node-vibrant/node' or its corresponding type declarations.
  There are types at 'PROJECT_ROOT_PATH/node_modules/node-vibrant/dist/esm/node.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.ts(2307)

I also found a github issue in typescript repo related to this issue.

@Sandakan
Copy link
Author

The error is now gone when I set the moduleResolution to NodeNext.
I'll keep the issue open so that you can check whether its a bug in the package.

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

1 participant