Replies: 3 comments 8 replies
-
Your server.js file in Node is not a ESM module by default, it uses CJS instead, so you need to use You can use the remix.config.js server option to ask Remix to bundle your server.js so you can use ESM, TS and even JSX there. |
Beta Was this translation helpful? Give feedback.
-
I have this same issue 😔.. Stuck on this for hours now. if i get the build step working, the dev command won't work anymore. if i remove the server config and make the dev part work, build won't work anymore.. |
Beta Was this translation helpful? Give feedback.
-
@guepjo @spy16 Have a look here. This issue helped me solving the problem. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
Sorry if this question is a bit basic, but I am pretty new to remix and frontend development as a whole. I am facing an with importing a function into the
server.js
file. I created a simple remix app and to show my problem.I am facing this error when I run the app ❌
Does anyone know a way to work around this?
Beta Was this translation helpful? Give feedback.
All reactions