Skip to content

Deleted a workspace but Turborepo still trying to read its package.json #7186

Answered by danielhep
danielhep asked this question in Help
Discussion options

You must be logged in to vote

I was finally able to fix this. I found some documentation that I can't find again that mentioned not putting internal monorepo dependencies inside the package.json at the top level of the repo. I checked and sure enough, at some point I had added some internal dependencies there. Removing them and rerunning pnpm install fixed the issue for me. I am not sure what the linkage is between this mistake on my part and the issue I was encountering- some kind of caching thing?

Given how obscure this bug was and difficult to track down, I think there should be some checks in turborepo that warn people who put internal dependencies at the top level. @anthonyshew

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@dewbjorn
Comment options

@kickbk
Comment options

@anthonyshew
Comment options

Answer selected by danielhep
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@elamandeep
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
8 participants