framework icon indicating copy to clipboard operation
framework copied to clipboard

`nuxt doctor`

Open danielroe opened this issue 3 years ago • 1 comments

would be handy to have a command to diagnose issues. It could include utilities to resolve package dependency issues, such as:

  1. outdated versions of unjs utils (defu, untyped) https://github.com/nuxt/framework/issues/7168 https://github.com/nuxt/framework/issues/6523
  2. nuxt 2 modules in dep list (even if not in nuxt.config) https://github.com/nuxt/framework/issues/7620
  3. monorepo hoisting issues (though https://github.com/nuxt/framework/issues/158 implementation should have dealt with some of this)
  4. mismatched (or multiple) versions of vue deps https://github.com/nuxt/framework/issues/7609

danielroe avatar Sep 20 '22 08:09 danielroe

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).

pi0 avatar Sep 20 '22 08:09 pi0