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

Any one know if this can be fixed with out the esModuleInterop #379

Open
JimmyBjorklund opened this issue Feb 5, 2024 · 0 comments
Open

Comments

@JimmyBjorklund
Copy link
Contributor

Think this is caused by the class LRUCache that alos is a namespace. This gets the compiler confused.

node_modules/coap/dist/lib/server.d.ts:11:8 - error TS1259: Module '"coap-service/node_modules/@types/lru-cache/index"' can only be default-imported using the 'esModuleInterop' flag

11 import LRUCache from 'lru-cache';
~~~~~~~~

node_modules/@types/lru-cache/index.d.ts:193:1
193 export = LRUCache;
~~~~~~~~~~~~~~~~~~
This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

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