Skip to content

Error using Encore 4 + yarn pnp: cannot find package from Babel #1149

@weaverryan

Description

@weaverryan

Hi!

I'm hoping to get some help from @Kocal. When testing the upcoming Encore v4, normal node & yarn still work, but yarn pnp is not yet working, and I'm not sure why. In a "vanilla" Encore install, when running Encore, I get the error:

cannot find package '@babel/plugin-proposal-class-properties'

I've reproduced it here (this is a vanilla Encore, converted to yarn pnp): https://github.com/weaverryan/encore4-testing

WDYT? I'm wondering if pnp will also force us to move babel-loader @babel/core @babel/preset-env into peerDependencies as well, meaning the user would need to have it installed in their local app. But that's just a guess.

Cheers!

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