webpack-contrib / postcss-loader

PostCSS loader for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peer dependencies for cosmiconfig-typescript-loader not met

mdrodz opened this issue · comments

Bug report

postcss-loader doesn't provide @types/node, ts-node and typescript, requested by "cosmiconfig-typescript-loader"

Actual Behavior

This breaks PnP for Yarn

Expected Behavior

postcss-loader should include these packs as dependencies since it is requested by a package it uses

How Do We Reproduce?

Using Yarn v2 PnP, install the package and the warning will appear

We don't use ts-node directly so we should not provide peer deps in the package

Maybe this is a bug with the cosmiconfig-typescript-loader package.json then?

Because it states that it needs a ts-node in the environment (peer deps).

Also, even with the latest patch (7.2.1), I still have the same errors:

Yarn v2 pnp error

What is yarn version?

Yarn version is 3.5.0

I can't add them as dependecies, because we don't use it directly, putting them in peer deps doesn't solve nothing...