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

@nuxt/cli or @nuxt/cli-edge not listed as dependencies of @nuxt/typescript-runtime #550

Open
snapwich opened this issue May 31, 2022 · 0 comments

Comments

@snapwich
Copy link

snapwich commented May 31, 2022

Describe the bug
In the @nuxt/typescript-runtime code here it references either @nuxt/cli or @nuxt/cli-edge but these are dependencies of nuxt, not @nuxt/typescript-runtime. normally this shouldn't be an issue because you'd have nuxt installed as well but with the latest npm workspaces it seems to want to hoist this package (@nuxt/typescript-runtime) but not nuxt or its dependency @nuxt/cli. this causes a module resolution error when running nuxt-ts

To Reproduce

  1. include nuxt, @nuxt/typescript-runtime, and @nuxt/typescript-build as dependencies of your sub-package in a monorepo.
  2. install dependencies at root using npm install with workspaces configured.
  3. try to run sub-package using nuxt-ts

Expected behavior
nuxt-ts should run successfully. but depending on how the packages are hoisted it's possible that it won't find @nuxt/cli and @nuxt/cli-edge and crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant