Skip to content

build failed with pnpm #936

@nstringham

Description

@nstringham

When using pnpm I get the following error:

Error: [vite]: Rolldown failed to resolve import "workbox-window" from "/@vite-plugin-pwa/virtual:pwa-register".

As a workaround I added this to my pnpm-workspace.yaml

publicHoistPattern:
  - "*workbox*"

According to the pnpm docs this config is necessary when a dependency plugin is not configured correctly.

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