Skip to content

Build failure due to missing package caniuse-lite #40856

@jffng

Description

@jffng

Description

The plugin was failing to build for me because of a missing package: caniuse-lite.

Step-by-step reproduction instructions

  1. rm -rf node_modules
  2. nvm use
  3. npm i && npm run dev

Consistently resulted in the following for me:

Error: Cannot find module 'caniuse-lite/...'

Manually installing the package (npm i caniuse-lite) fixed the issue for me.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions