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 #629

Open
EvilWatermelon opened this issue Feb 6, 2025 · 0 comments
Open

Cannot find module #629

EvilWatermelon opened this issue Feb 6, 2025 · 0 comments

Comments

@EvilWatermelon
Copy link

I installed the module using npm install @duckduckgo/autoconsent which worked well. But importing it does not work.

import AutoConsent from '@duckduckgo/autoconsent';
import * as rules from '@duckduckgo/autoconsent/rules/rules.json';
Cannot find module '@duckduckgo/autoconsent' or its corresponding type declarations
Cannot find module '@duckduckgo/autoconsent/rules/rules.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
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