Closed MAST1999 closed 1 month ago
As a workaround, I've added the alias to the ts config as well.
But it would be great if that was not needed.
@mast1999 you always need to define how typescript should resolve "custom" paths.
I've followed the setup guides and set the
allowJS
to true in ts config.
can you link the guide? it seems like we can improve the wording
Closing this as stale
This could be a bug in TypeScript, but since I wasn't sure, I thought I'd ask here first.
It's easy to reproduce, just define a few imports in
package.json
for example like this:And then import it with
import * as m from "#i18/message.js"
, it shows this error:But if I import directly like this
import * as m from "./src/paraglide/message"
it works. I've followed the setup guides and set theallowJS
to true in ts config.Here's the reproduction: https://stackblitz.com/edit/vitejs-vite-q2fxtt?file=src%2FApp.tsx&terminal=dev