Skip to content

Incompatible with Yarn 2 / berry #1046

@DerDrodt

Description

@DerDrodt

Do you want to request a feature or report a bug?

Feature

What is the current behaviour?

When running the CLI with Yarn 2, because of Plug'n'Play, we get an error:

ERROR No node_modules found! Please run npm install before continuing.

If the current behaviour is a bug, please provide the steps to reproduce.

Install Yarn 2 and run preact build

What is the expected behaviour?

It should be able to build with Yarn 2

If this is a feature request, what is motivation or use case for changing the behaviour?

Developers will want to use the new version of Yarn.

Please mention other relevant information.

As far as I can tell, the problem is that the loaders in the Webpack configs are not declared using require.resolve. Doing so would allow us to use the pnp-Webpack-plugin

Please paste the results of preact info here.
version 2.2.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions