Skip to content

react-jsx example no longer works when updating to React 18 #928

Open
@mor10

Description

@mor10

Update the dependencies to React v18 and the react-jsx example no longer works. When the 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)

Not sure if this issue originates with esbuild or modernweb-dev but it is not documented and is reproducible with any project running React v18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions