Replies: 6 comments 6 replies
-
I just tried reproducing this on my remix v2, and it is working fine for me. |
Beta Was this translation helpful? Give feedback.
-
This is how I got this working:
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
serverModuleFormat: 'cjs',
// etc
} You might need to update other server files to use commonjs exports. EDIT: If that's giving you a hard time, try using shadcn instead; it's really great. |
Beta Was this translation helpful? Give feedback.
-
To continue to use |
Beta Was this translation helpful? Give feedback.
-
I attempted the |
Beta Was this translation helpful? Give feedback.
-
I've created a minimal repro repo in case anyone wants to experiment. Also, found a couple related items:
|
Beta Was this translation helpful? Give feedback.
-
I managed to fix it for my project! If you're using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I use remix v2.0 with
@radix-ui/themes
, but got the following problem whenpnpm dev
:Then I found this: https://remix.run/docs/en/main/start/v2#esm--commonjs-errors. But I think it's inapplicable, because
@radix-ui/themes
supports cjs and esm.So well, is this a bug or am I using it incorrectly?
Beta Was this translation helpful? Give feedback.
All reactions