Replies: 1 comment
-
I fix the issue by switching to Vite. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there,
I'm trying to migrate a typescript project that were compiled in CommonJS modules to ESM.
In order for it to work I changed :
in
package.json
:{ + "type": "module" }
in
remix.config.js
:From there, the code generated is what I expected. However, it does not handles the path aliases I configured in my
tsconfig.json
file.I have the following paths configured:
And the emitted code still contains statements as
import xyz from "@Components/xyz.js"
.Thus, the run fails with the following error:
I expect the import path should be transformed to a relative path somehow? How can I configure that with Remix?
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions