Replies: 3 comments 1 reply
-
I'm struggling with the same thing. |
Beta Was this translation helpful? Give feedback.
-
I don't know if this helps but it helped me: #9323 (comment) |
Beta Was this translation helpful? Give feedback.
-
Thanks, that might work, but that doesn't quite seem right. if you look the the remix teams trellix vite demo project, the loaders/actions are in the same file, so thinking there is some other issue at play here. maybe because that demo is not using a server folder or .server files |
Beta Was this translation helpful? Give feedback.
-
I have a remix cloudflare 2.8.1 project which includes about 40+ .server.ts files that I'm trying to migrate to vite, those files are only called server side from my loaders/actions, but can't get it to compile "Server-only module referenced by client". its seems I need to remove the .server from the filename or use serverOnly$. that doesn't feel right . am I missing something? thanks.
Beta Was this translation helpful? Give feedback.
All reactions