Skip to content

[bug] PNPM failed to install Bundler modules automatically #8304

@TechQuery

Description

@TechQuery

Parcel detected a PNPM project, but failed to install Bundler modules automatically.

🎛 Configuration

package.json

{
    "source": "source/index.ts",
    "types": "dist/index.d.ts",
    "main": "dist/index.umd.js",
    "module": "dist/index.js",
    "devDependencies": {
        "parcel": "^2.6.2"
    },
    "browserslist": "> 0.5%, last 2 versions, not dead",
    "targets": {
        "main": {
            "optimize": true
        }
    },
    "scripts": {
        "build": "parcel build"
    }
}

🤔 Expected Behavior

Install missing Bundler modules automatically as NPM & Yarn projects does.

😯 Current Behavior

pnpm build

Error: Failed to install @parcel/transformer-typescript-types: pnpm failed to install modules

pnpm i @parcel/transformer-typescript-types -D

 WARN  Issues with peer dependencies found
.
└─┬ @parcel/transformer-typescript-types
└─┬ @parcel/plugin
└─┬ @parcel/types
└─┬ @parcel/cache
├── ✕ missing peer @parcel/core@^2.6.2
└─┬ @parcel/fs
├── ✕ missing peer @parcel/core@^2.6.2
└─┬ @parcel/types
└─┬ @parcel/package-manager
├── ✕ missing peer @parcel/core@^2.6.2
└─┬ @parcel/fs
├── ✕ missing peer @parcel/core@^2.6.2
└─┬ @parcel/workers
└── ✕ missing peer @parcel/core@^2.6.2
Peer dependencies that should be installed:
@parcel/core@">=2.6.2 <3.0.0"

💁 Possible Solution

I installed all the missing Bundler modules manually to make it work.

🔦 Context

idea2app/Idea-React#16

🌍 Your Environment

Software Version(s)
Parcel 2.6.2
Node 14.19.1
PNPM 7.5.0
Operating System Windows 10 Pro 21H1

Metadata

Metadata

Assignees

No one assigned

    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