Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Yarn v2.x #1118

Closed
2hoyeong opened this issue Dec 16, 2021 · 1 comment
Closed

Add support for Yarn v2.x #1118

2hoyeong opened this issue Dec 16, 2021 · 1 comment

Comments

@2hoyeong
Copy link
Contributor

Describe the bug

Yarn berry no longer create node_modules. but apidoc find assets in node_modules

error: Could not find where dependencies of apidoc live!
error: The "path" argument must be of type string. Received undefined
[error] apidoc encountered an error during documentation generation!

Steps to reproduce

  1. Create yarn berry project
  2. Install apidoc >= 0.50
  3. Build

Information

  • Version of apidoc: ^0.50.2
  • Operating system (e.g. GNU+Linux/MacOS/Windows): MacOS
  • Node version: v16.4.1
  • Browser (e.g. firefox, chrome):
  • Yarn: 3.1.1
2hoyeong pushed a commit to 2hoyeong/apidoc that referenced this issue Dec 16, 2021
2hoyeong pushed a commit to 2hoyeong/apidoc that referenced this issue Dec 16, 2021
@NicolasCARPi
Copy link
Collaborator

Note to future self (or another contributor wanting to address this shortcoming): this should be used: https://yarnpkg.com/advanced/pnpapi/#accessing-the-files

@NicolasCARPi NicolasCARPi changed the title Yarn berry is not supported Add support for Yarn v2.x Jan 18, 2022
2hoyeong pushed a commit to 2hoyeong/apidoc that referenced this issue Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants