Skip to content

fix(nuxt): do not read user's package.json when looking for nuxt deps#27864

Merged
danielroe merged 3 commits intomainfrom
fix/dep-fallback
Jun 27, 2024
Merged

fix(nuxt): do not read user's package.json when looking for nuxt deps#27864
danielroe merged 3 commits intomainfrom
fix/dep-fallback

Conversation

@danielroe
Copy link
Copy Markdown
Member

🔗 Linked issue

📚 Description

This is a follow-up on #27507. Noticed we were getting weird issues with @nuxt/schema + kit versions - and this was because when @nuxt/schema was not installed explicitly in a pnpm project, Nuxt was silently reading package.json from user's project because the module was resolved as /user/path/@nuxt/schema and the closest package.json to this nonexistent path was in fact the user project.

cc: @huang-julien

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant