framework icon indicating copy to clipboard operation
framework copied to clipboard

More obvious deprecation of Nuxt 2 settings in `nuxt.config.js`

Open TheAlexLichter opened this issue 3 years ago • 3 comments

Describe the feature

Hey 👋🏻

right now, it seems difficult for several people to realize which config options from nuxt.config.js/nuxt.config.ts are actually used in Nuxt 3 (e.g. target). Right now, the only hint is the @version tag in the JSDocs which isn't very prominent though.

image

It'd be nice to have a better alternative (e.g. @deprecated?) so people can be more aware.

Additional information

  • [X] Would you be willing to help implement this feature?
  • [ ] Could this feature be implemented as a module?

Final checks

TheAlexLichter avatar Sep 22 '22 11:09 TheAlexLichter

This is absolutely planned, though I couldn't find an issue for it.

danielroe avatar Sep 22 '22 11:09 danielroe

though I couldn't find an issue for it.

I think this is usually a "side effect" in other Nuxt3 issues, e.g.:

  • https://github.com/nuxt/framework/issues/7656#issuecomment-1253588137
  • https://github.com/nuxt/framework/issues/7542
  • https://github.com/nuxt/framework/issues/7875
  • Basically any issue where "target: static" is included 🙈 (query)

But given the amount of people writing target in their Nuxt3 config, I assume that there is a good potential for improving DX 😋

TheAlexLichter avatar Sep 22 '22 11:09 TheAlexLichter

Thanks for making issue @manniL. Indeed we need to move Nuxt 2 types to bridge and mark them as never for 3+ schema to avoid accidentally using them. I had planned to work on this soon.

pi0 avatar Sep 22 '22 13:09 pi0