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

TypeError when using in an app with moduleResolution nodenext #339

Open
v1adko opened this issue Feb 17, 2023 · 0 comments
Open

TypeError when using in an app with moduleResolution nodenext #339

v1adko opened this issue Feb 17, 2023 · 0 comments

Comments

@v1adko
Copy link

v1adko commented Feb 17, 2023

When using the library in an app with moduleResolution "nodenext" in tsconfig I get an TS error.
Is it possible to use the library with this setting?
Maybe it's not related to the library itself and how it's built but to a configuration I need to change.

Reproduction repo link

Full error

src/useSWRV.ts:4:18 - error TS2349: This expression is not callable.
  Type 'typeof import("/Users/v1adko/Projects/Slippy/mono-test/vue-project/node_modules/swrv/dist/index")' has no call signatures.

const result = useSWRV("key", () => null);

Found 1 error in src/useSWRV.ts:4
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