#Unknown file extension ".jsx"

1 messages · Page 1 of 1 (latest)

clear lintel
#

with esm you have to import as .js

echo current
clear lintel
#

It seems like it's something to do with you server, not remix since it built. Are you importing JSX into your server by accident somewhere?

#

Maybe you need "jsx": "react-jsx" in your tsconfig, because a .jsx file will be turned to .js on build

echo current
#

I don't use typescript

#

Also if you mention me I reply faster

clear lintel
echo current
#

Yeah I know, it used to work but when I turned the imports to relative imports this happened

#

Because now my project is too big and I cannot use it ../../ for imports so I use a relative import for example #app/ which accesses everything inside the app but after that it gives the error

clear lintel
#

that kind of import typically requires some transpiling like typescript does, with path aliases

#

but I don't work with JS outside of TS anymore, so I can't help much more