Closed mdrodz closed 1 year ago
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:
What is yarn version?
Yarn version is 3.5.0
Looks like bug is there https://github.com/Codex-/cosmiconfig-typescript-loader/blob/main/package.json#L36, they should be optinal
I can't add them as dependecies
, because we don't use it directly, putting them in peer deps doesn't solve nothing...
Yup, it seems to be their problem:
https://github.com/Codex-/cosmiconfig-typescript-loader/issues/79
Thanks!
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