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
[turborepo] Yarn installing from npm registry rather than internal packages #6322
Comments
If you want to depend on a workspace Yarn has the I see our docs don't include this for Yarn2+ and we should add it. |
@achadee can you share your full |
Hey Sorry guys, been on 5 days of flights, I'll get back to you with some more of my config in a day or 2 |
apps/web/package.json
packages/math-helpers/package.json
packages/math-helpers/src/index.ts
Yarn Install snippet:
Its worth noting that the template I started with, included a When changing to
|
@achadee thanks for following up, could you share your root |
@tknickman Hi! The error which I am facing is:
What exactly is the problem here?? |
here you go: /package.json
|
@tknickman I was able to fix the issue by doing the following:
I think its either worth updating the docs to reflect this, or fixing this bug, I wasted so much time on this. |
A version needs to be added to the |
### Description Added the package version to the internal packages docs example. Without version in the shared internal package, Yarn will attempt to fetch from the npm registry leading to rabbitholes like this one: #6322 ### Testing Instructions Confirm docs load with new text.
Closing this as this is an issue with use of the underlying package managers. With #6696 we have callouts for use of If you encounter an issue similar to this one and feel our docs could be made clearer, then please open a new issue along with which docs should be updated. |
What version of Turborepo are you using?
1.10.16
What package manager are you using / does the bug impact?
Yarn v2/v3 (node_modules linker only)
What operating system are you using?
Mac
Describe the Bug
Hey guys, im following this tutorial to the tee
https://turbo.build/repo/docs/handbook/sharing-code/internal-packages
and yarn keeps trying to install this package:
https://www.npmjs.com/package/math-helpers
Any ideas whats happening?
Yarn v: 3.4.1
Node: 19.7.0
npm: 9.5.0
yarn lock
apps/web/packages.json
Expected Behavior
yarn
should install the local internal packages when passing the*
To Reproduce
Follow the tutorial above with the versions?
Reproduction Repo
No response
The text was updated successfully, but these errors were encountered: