Skip to content

inferno-compat missing support for createRoot #1624

@necolas

Description

@necolas

Observed Behaviour

inferno-compat does not support the following:

import { createRoot } from 'react-dom/client';

Error:

Module not found: Error: Can't resolve 'react-dom/client'

Expected Current Behaviour

Inferno should not error. For example, this is supported by preact/compat, which has a client.js file with a createRoot export.

Inferno Metadata

inferno 8.0.6
inferno-compat 8.0.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions