Skip to content

ERROR in ./node_modules/webpack-hot-middleware/client-overlay.js 38:19-43 Module not found: Error: Package path . is not exported from package ./node_modules/html-entities (see exports field in ./node_modules/html-entities/package.json) #462

@tanin47

Description

@tanin47
  • Operating System: MacOS
  • Node Version: 22
  • NPM Version: N/A
  • webpack Version: 5.99.5
  • ${package} Version: 2.26.1

Expected Behavior

It should not raise any exception.

Actual Behavior

When we use html-entities 2.6.0, it raises the exception below:

ERROR in ./node_modules/webpack-hot-middleware/client-overlay.js 38:19-43
Module not found: Error: Package path . is not exported from package ./node_modules/html-entities (see exports field in ./node_modules/html-entities/package.json)

Explicitly installed html-entities 2.1.0 makes it work again. Not sure why.

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