-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug]: PnP linker does not work with docusaurus #4086
Comments
Gentle poke here - I know you are all incredibly busy, so I understand you may not have the time to debug this. What commands could I run myself to provide you with logs/info that could help understand how to fix this? |
I haven't looked into it yet, but when I saw the error message the first thing that popped into my mind was either something like a Webpack |
I was thinking along the same lines, but I don't know where to start the debugging journey. Any pointers? Or would it make sense to ask the docusaurus team if they have an idea from just glancing at it? |
Will most likely be fixed by #3889 |
This warning's cause is #3889 (comment), and yes, I did spend a while poking around it last month (didn't see this issue back then)... This warning has been suppressed in Docusaurus as well, in facebook/docusaurus#6779. It's not ideal, so hoping #3889 can land soon :D |
This comment was marked as outdated.
This comment was marked as outdated.
It's not not reproducible though :/ Can confirm it's always relevant and I'm really looking forward to removing that check from facebook/docusaurus#6779 |
Self-service
Describe the bug
Using the PnP linker with docusaurus (specifically, running
yarn build
) leads to this error:Setting
nodeLinker: node-modules
fixes everything.To reproduce
Clone https://github.com/alubbe/yarn2-docusaurus-bug, run
yarn install
followed byyarn build
to see the errors.Then set
nodeLinker: node-modules
(or revert the current commit), runyarn install
followed byyarn build
to see that it all works again.This repo was created by simply running
npx create-docusaurus@latest my-website classic
.Environment
System: OS: macOS 10.15.7 CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz Binaries: Node: 16.13.2 - /private/var/folders/3q/__zqxvrj0pqdmv03_3hkknl00000gn/T/xfs-c06aa74c/node Yarn: 3.1.1 - /private/var/folders/3q/__zqxvrj0pqdmv03_3hkknl00000gn/T/xfs-c06aa74c/yarn npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm
Additional context
No response
The text was updated successfully, but these errors were encountered: