Skip to content

acorn-import-assertions is no longer available if using newer webpack #29

@yuttie

Description

@yuttie

The acorn-import-assertions package is used here, but it is missing from package.json as a direct dependency.

With older versions of webpack (e.g. v5.88.2 as indicated in the package-lock.json), acorn-import-assertions is installed indirectly as a dependency of webpack, so the issue does not surface.

However, with recent versions of webpack, acorn-import-assertions is no longer the dependency of webpack, which leads to a build error:

ERROR in ./node_modules/pyodide/pyodide.mjs
Module build failed (from ./node_modules/@pyodide/webpack-plugin/loader.cjs):
Error: Cannot find module 'acorn-import-assertions'

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