Closed reggi closed 2 years ago
The error could be less cryptic, which would be fixed on Vite side (I'll try to look into this separately), but it seems like the @rjsf/semantic-ui
package is incorrectly exported. main
points to a non-existing file, and module
isn't read by nodejs. I've sent a PR to fix this there: https://github.com/rjsf-team/react-jsonschema-form/pull/3022. Closing this for now as it's an upstream issue.
Actually it looks like Vite is returning the full stack, but Astro is trimming it. Sending a PR to fix this, and reopening.
What version of
astro
are you using?1.0.6
Are you using an SSR adapter? If so, which one?
Local
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
I'm trying to pull in a specific npm package of a react component found here: https://www.npmjs.com/package/@rjsf/semantic-ui, for some reason I'm unable to use the component. I get this errror:
Just thought i'd document this, obviously compatibility with every module is not easy but perhaps others will come across this too. Not sure why this is happening.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-e2ezwj?file=src%2Fpages%2Findex.astro&on=stackblitz
Participation