components icon indicating copy to clipboard operation
components copied to clipboard

Report errors for missing, not imported components when feature is disabled

Open michaelschufi opened this issue 4 years ago • 2 comments

Hi all

I'm not sure if I should report this in this repo or the main one. Sorry in advance...

Describe the bug After disabling the auto-import components feature, rendering not explicitly imported components fails silently.

To Reproduce

  1. Run create-nuxt-app with the following options: image
  2. Set components: false in nuxt.config.js
  3. Observe that the Logo component is not rendered anymore, but there is also no error!

Expected behavior In the terminal (dev-server) and in the IDE (Vetur) an error should show up, which reports that the component import is missing.

michaelschufi avatar Feb 17 '21 18:02 michaelschufi

Indeed, I think we shall report errors in a nicer way when a component is not found.

atinux avatar Feb 17 '21 18:02 atinux

But would this change be in this repo or not? Currently, if the module is deactivated, it does completely nothing, right? So would the issue fit better in the main repo?

michaelschufi avatar Feb 17 '21 18:02 michaelschufi