FOSJsRoutingBundle icon indicating copy to clipboard operation
FOSJsRoutingBundle copied to clipboard

Cannot use router in a Typescript Environment

Open milanteo opened this issue 3 years ago • 2 comments

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

milanteo avatar Mar 28 '22 08:03 milanteo

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

Ludovicmanga avatar Mar 29 '22 07:03 Ludovicmanga

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

Anyone has more guesses ?

zelding avatar Sep 22 '22 10:09 zelding