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

bug(schema): untyped isn't declared in dependencies #15119

Closed
Lexpeartha opened this issue Oct 9, 2022 · 0 comments · Fixed by nuxt/framework#8064
Closed

bug(schema): untyped isn't declared in dependencies #15119

Lexpeartha opened this issue Oct 9, 2022 · 0 comments · Fixed by nuxt/framework#8064

Comments

@Lexpeartha
Copy link
Contributor

Environment

Nuxt project info: 

------------------------------
- Operating System: `Linux`
- Node Version:     `v16.17.1`
- Nuxt Version:     `3.0.0-rc.11`
- Package Manager:  `Yarn`
- Bundler:          `Webpack`
- User Config:      `-`
- Runtime Modules:  `-`
- Build Modules:    `-`
------------------------------

Reproduction

This issue seems obvious (I think?)

Describe the bug

Issue gets thrown:

 ERROR  @nuxt/schema tried to access untyped, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: untyped (via "untyped/package.json")
Required by: @nuxt/schema@npm:3.0.0-rc.11 (via /home/user/Desktop/Projects/nuxt-project/.yarn/cache/@nuxt-schema-npm-3.0.0-rc.11-0a804397f7-f31d42c629.zip/node_modules/@nuxt/schema/dist/index.mjs)

My guess is that yarn looks in "dependencies", but not in "devDependencies"

Might be fixed by moving untyped to regular deps

Additional context

Error is thrown after migrating my project to yarn 3 with PnP

Logs

No response

@Lexpeartha Lexpeartha changed the title bug(schema): untyped isn't declared in dependencies; bug(schema): untyped isn't declared in dependencies Oct 9, 2022
@danielroe danielroe self-assigned this Oct 9, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants