More verbose error messaging for Vue 2 style dynamic imports - Invalid VNode type: undefined #2497
Labels
🍰 p2-nice-to-have
Priority 2: this is not breaking anything but nice to have it addressed.
✨ feature request
New feature or request
What problem does this feature solve?
I know that there is work being done to create friendlier and more helpful errors for migrating code bases. I've recently done a migration from 2 to 3 on a small demo I work on, and I found the messaging when erroring on old style dynamic imports to be extremely unhelpful.
The previous style dynamic imports looked like this:
However, when migrating, the error received for this type of import is a bit lacking:
So I am aware of what is causing the error, but I have no idea how to fix it or that I would need to import
defineAsyncComponent
.What does the proposed API look like?
in the error message handling for this, would it be possible to check if the thing that errored is the Vue 2 style import and link to the appropriate migration docs?
or something similar?
The text was updated successfully, but these errors were encountered: