esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Failed to import - `esbuild: package 'uWebSockets.js' not found`

Open dimaMachina opened this issue 8 months ago • 2 comments

Failing module

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

dimaMachina avatar Apr 27 '25 06:04 dimaMachina

solved by external=@graphiql/toolkit. It might be nice to improve the error message.

dimaMachina avatar Apr 28 '25 11:04 dimaMachina

thanks, i will look into it.

ije avatar Apr 28 '25 13:04 ije