Skip to content

Error after updating to 0.8.0 when using with Next.js #65

@chrissnyder2337

Description

@chrissnyder2337

After updating my Next.js application to use version 0.8.0, I started to see the following error:

Error [ERR_REQUIRE_ESM]: require() of ES Module /var/task/src/project/node_modules/@lit/react/node/index.js from /var/task/src/project/node_modules/@stencil/react-output-target/dist/react.cjs not supported.
Instead change the require of index.js in /var/task/src/project/node_modules/@stencil/react-output-target/dist/react.cjs to a dynamic import() which is available in all CommonJS modules.

I believe this is because 0.8.0 introduces a new dependency on @stencil/react-output-target@0.8.2.

I am wondering if this issue could be resolved by updating @stencil/react-output-target to the latest version: @stencil/react-output-target@1.2.0

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