Closed
Description
Related: modernweb-dev/example-projects#928.
In a project using React v18 when the build process runs, the generated page is blank and console returns the following error:
Uncaught SyntaxError: The requested module './../node_modules/react/index.js' does not provide an export named 'default' (at App.jsx:1:8)
These issues cascade down the dependency tree. If React v16 is used, the same issue does not appear.
To reproduce, clone the react-jsx example, update the dependencies to React 18, and test.
Not sure if this issue originates with esbuild or modernweb-dev but it is not documented and is reproducible across all projects I've tested running React v18.
Metadata
Metadata
Assignees
Labels
No labels