esm.sh
esm.sh copied to clipboard
Failed to import - `esbuild: package 'uWebSockets.js' not found`
Failing module
- GitHub: https://github.com/graphql/graphiql/pull/3897
- npm: @graphiql/[email protected]
import { GraphiQL } from "https://esm.sh/@graphiql/[email protected]?external=react"
Error message
After onload I got this:
esbuild: package 'uWebSockets.js' not found
Additional info
- Browser info:
this errors appears only after adding external=react
solved by external=@graphiql/toolkit. It might be nice to improve the error message.
thanks, i will look into it.