-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Docs: How to initial install all modules in all packages in the workspace? #7910
Comments
Note: I tried also with latest
|
This sounds like intended behavior. Different package managers install to different locations in Workspaces. The dependencies you're looking for are likely in the If you start your development server or run a build, do your dependencies resolve? If so, that means your package manager is doing its job correctly and you can close this issue. |
I have dependencies in my workspace packages that need to be installed. If I try to build my workspace packages like I have to manually run The turbo documentation says that running either should install all deps for workspace packages, but it doesn't. It seems to be an issue with npm and yarn respectively instead of turbo based on my research so far, but the turbo docs are incorrect in claiming that it would. |
Via the document link
I only see it in the root, not each workspace package. Exception is |
Could you share a reproduction repo, along with the npm version you're using? |
This is quite vague, are you resolving the dependencies manually within workspaces? |
Running npm / yarn install in the respective dirs. |
@theogravity
this seems like a red herring and unrelated to your |
I have a feeling that I'm facing the exact same issue as OP. As someone who's still learning frontend development, I have a hunch that I'm missing some crucial knowledge (package manager? webpack? something around how Here's my attempt to provide a repro (which is requested in the comment above), please let me know if I should clarify more (e.g., pasting contents of various configs files):
Up till now, the following commands work:
Furthermore, I made sure {
"name": "dashboard",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "next build",
"dev": "next dev",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@heroicons/react": "^2.1.4",
"@tailwindcss/forms": "^0.5.7",
"@vercel/postgres": "^0.8.0",
"autoprefixer": "10.4.19",
"bcrypt": "^5.1.1",
"clsx": "^2.1.1",
"next": "15.0.0-rc.0",
"next-auth": "5.0.0-beta.19",
"postcss": "8.4.38",
"react": "19.0.0-rc-f994737d14-20240522",
"react-dom": "19.0.0-rc-f994737d14-20240522",
"tailwindcss": "^3.4.7",
"typescript": "5.5.2",
"use-debounce": "^10.0.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/bcrypt": "^5.0.2",
"@types/node": "20.14.8",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"eslint": "^8",
"eslint-config-next": "14.2.4",
"next": "15.0.0-rc.0",
"prettier": "^3.3.2",
"tsup": "^8.2.3"
},
"engines": {
"node": ">=20.*.0"
}
}
The errors are:
|
I don't see a step where you run |
Would you clarify what you mean by this? The issue I'm seeing is that, I need to do these in order to view the app:
Whereas I expect running only I think I must be missing some configs changes, but I couldn't figure out how to fix. |
You have to |
I just retried:
Still seeing the same. I wonder if it was trying to find the
|
Does that import resolve in your IDE? |
It does. I checked by "Cmd + click" at the import statements on VS Code. This is because running |
|
Thanks for looking into the package.json in both examples which I tried to consolidate. I tried a bit for what you said, and am still encountering the said build errors. Two follow-up questions:
This corresponds to the |
What is the improvement or update you wish to see?
I'm looking at https://turbo.build/repo/docs/handbook/package-installation and followed the instructions to just do an
npm install
, but none of my workspace packages have anode_modules
directory.Not sure what I'm doing wrong here. I'm using normal
npm
and mypackage.json
has aworkspaces
value of"packages/*"
and all my packages are in that dir.Is there any context that might help us understand?
I just want to recursively run
npm install
on all packages in my turbo monorepoDoes the docs page already exist? Please link to it.
https://turbo.build/repo/docs/handbook/package-installation
The text was updated successfully, but these errors were encountered: