framework
framework copied to clipboard
`nuxt doctor`
would be handy to have a command to diagnose issues. It could include utilities to resolve package dependency issues, such as:
- outdated versions of unjs utils (defu, untyped) https://github.com/nuxt/framework/issues/7168 https://github.com/nuxt/framework/issues/6523
- nuxt 2 modules in dep list (even if not in
nuxt.config) https://github.com/nuxt/framework/issues/7620 - monorepo hoisting issues (though https://github.com/nuxt/framework/issues/158 implementation should have dealt with some of this)
- mismatched (or multiple) versions of
vuedeps https://github.com/nuxt/framework/issues/7609
I had been working on nuxt audit module previously (trying to find the code). It might be good idea to be developed as an ad-hoc module. It was mainly purposed for generic audit (not dependency related issues). Dependency related issues should be handled with nuxi upgrade IMO (and nuxi install maybe sometime later).