Open Jul13nT opened 1 year ago
Hi @Jul13nT,
What are these intermediary steps 3-5 for?
I cannot reproduce step 5 because there is no such line in my .yarnrc.yaml
file.
By default Yarn will not use it's last version and it's PnP mode when converting an existing repo from NPM to Yarn.
Step 3 is to use Yarn 3.x instead of Yarn 1.22. Step 4 is to migrate the repo from Yarn 1 to Yarn 3. Step 5 is to able Yarn PnP mode.
To confirm you are using the good setup, when running yarn -v
, you should see 3.3.0
. And you should see zip files in the .yarn/cache folder.
I can reproduce these steps using the feature Open in codespace of GitHub.
Hi @Jul13nT , Thanks for reporting.
As a workaround you can put pnpMode: loose
in yarnrc.yaml
and run yarn install
again
You can follow this link for more information.
Thanks, for anyone who don't want to set this param, another workaround I found is to set this in yarnrc.yaml
to declare the missing dependencies:
packageExtensions:
styled-components@5.3.3:
dependencies:
react-is: "18.2.0"
"@redocly/cli@^1.0.0-beta.114":
dependencies:
"lodash.isequal": "^4.5.0"
"node-fetch": "^2.6.1"
redoc@~2.0.0:
dependencies:
call-me-maybe: "1.0.2"
yaml: "2.1.3"
fast-safe-stringify: "2.1.1"
Do we need to make code or docs changes to complete the request here?
Yes, we have to add missing deps to our package.json.
We won't be able to add react-is
one as this is controlled by styled-components
package.
@tatomyr we also need to check why redoc package requires yaml
. This seems wrong.
Describe the bug I'm unable to install redocly in devDependencies and use it with Yarn Pnp mode. It shows an error for undeclared dependencies.
To Reproduce Steps to reproduce the behavior:
yarn
yarn set version stable
yarn install
nodeLinker: node-modules
from.yarnrc.yml
file to use PnP mode.yarn install
again.yarn test
Expected behavior With the cloned repo openapi-starter, running
yarn test
should lint the openapi file instead of throwing an error.Logs
Redocly Version(s) 1.0.0-beta.112, 1.0.0-beta.114
Node.js
Version(s) 14.20.1, 18.12.1Yarn Version(s) 3.3.0, 3.2.4
Additional context Additionally, when running
yarn install
, Yarn warns on missing peer dependencies: