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

npx nuxi info doesn't work correctly when #14997

Closed
cpreston321 opened this issue Sep 21, 2022 · 1 comment · Fixed by nuxt/framework#7728
Closed

npx nuxi info doesn't work correctly when #14997

cpreston321 opened this issue Sep 21, 2022 · 1 comment · Fixed by nuxt/framework#7728
Assignees

Comments

@cpreston321
Copy link
Contributor

cpreston321 commented Sep 21, 2022

Environment


  • Operating System: Darwin
  • Node Version: v18.9.0
  • Nuxt Version: 3.0.0-rc.10
  • Nitro Version: 0.5.3
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-eukkol?file=nuxt.config.ts

Describe the bug

If you don't include (which is default)

import { defineNuxtConfig } from 'nuxt/config'

It will not show Runtime Modules, Build Modules and etc..

Additional context

I saw in nuxi info it uses jitti to load the file but usually the error that occurs is that it can't resolve 'defineNuxtConfig' within jitti try catch statement.

See Code Here: https://github.com/nuxt/framework/blob/daf99c3cac96e805f5ca7a31e803490878ec708f/packages/nuxi/src/commands/info.ts#L120-L127

Logs

No response

@cpreston321
Copy link
Contributor Author

I think the main problem lies in jitti with resolving auto imports or maybe some fallbacks? But hopefully this helps

Thanks 💚

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