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 use router in a Typescript Environment #435

Open
milanteo opened this issue Mar 28, 2022 · 2 comments
Open

Cannot use router in a Typescript Environment #435

milanteo opened this issue Mar 28, 2022 · 2 comments

Comments

@milanteo
Copy link

I'm currently trying to use this package in a Symfony project using Webpack Encore,
I'm currently working with Vue 3 and Typescript and trying to implement it as show in this PR
PR

but after compiling i get those errors

image

Some help would be appreciated to know if I'm doing something wrong
Thank you in advance

@Ludovicmanga
Copy link

Hey @milanteo. For 'tsd', I used 'npm install tsd' like explained here : https://github.com/SamVerschueren/tsd
For the second error, I added "esModuleInterop": true, in "compilerOptions" in my tsconfig.json

@zelding
Copy link

zelding commented Sep 22, 2022

Strange that the tsd is not a requirement, and the esModuleInterop option didn't solve the second error for me.

Anyone has more guesses ?

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

3 participants