Why is @headlessui/react require() resolving to a string "/static/media/index.0e533cff7c637c31a558.cjs"? #1978
Unanswered
james-bowers
asked this question in
Help
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've got a typescript library which I transpile to CJS using
tsdx
. The resulting "require" in the bundle resolves to the string/static/media/index.0e533cff7c637c31a558.cjs
instead of a function or JS object like all the other 3rd part libraries I'm using.My babelrc is
My tsconfig.json is
and my tsdx.config.js is
This works fine in a nextjs environment, but not create react app or vite
Beta Was this translation helpful? Give feedback.
All reactions