Closed nicksrandall closed 6 days ago
thanks for reporting! import { useEffect } from "https://esm.sh/react@rc"
should work good, react 19 changed the development build. i will fix asap!
@ije I'm not seeing this as fixed for the dev build (which is what this issue was specifically about). Has this change be deployed to esm.sh?
Has this change be deployed to esm.sh?
nope, i will depoy soon
Failing module
esm.sh is not properly converting the react development package (written as CJS) to ESM. It only provides the default export and nothing else. I can change my code to switch to
import * as React from 'react'
but the issue is that many of my dependencies that use react to not do that so it still breaks.Error message
After
onload
I got this:Additional info