Open smeng9 opened 2 months ago
Hi @smeng9, I don't use pnp so not too familiar with the issue you're encountering. That said, I removed the yarn.lock
file from the template just in case it was causing any conflicts.
Even after removing yarn.lock file and performing a fresh install, the same issue happens during build stage in PnP mode.
Describe the bug
Building the Template Repository project throws useScrollController called outside of ScrollControllerProvider
Expected behavior
The Template Repository should be built without a problem.
Current behavior
I can't build the Template Repository in my project setup.
Possible solution
I guess it is some dependency issue but not sure.
Steps to reproduce
git clone https://github.com/PaloAltoNetworks/docusaurus-template-openapi-docs
cd docusaurus-template-openapi-docs && yarn set version berry
and set yarn to PnP mode byrm .yarnrc.yml
or just change .yarnrc.yml's nodeLinker to pnpyarn install
then add missing dependenciesyarn add @docusaurus/theme-common @docusaurus/plugin-content-docs
yarn docusaurus gen-api-docs all && yarn build
Screenshots
Context
I am not able to build the project using yarn PnP mode. I can still build the project using nodeLinker: node-modules in .yarnrc.yml . However that will take more space to store the package dependencies during development and CI release.
Your Environment