You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this might be the best place. Vue router is already validating the type of the component here.
If the error message would come from Vue router instead of Vue it would make it easier to narrow down the problem (i.e. user would intuitively look inside router.js file)
@SimonSiefke Oh, I see what you mean. Indeed, it might be a good improvement. I guess, it would be the best to mark it as a "Feature request" instead of an "Issue" then.
Version
3.1.5
Reproduction link
https://codesandbox.io/s/vue-routing-example-em6dm?file=/router/index.js
Visit the
/hello
page in the codesandbox reproduction and open the console to see the error messageSteps to reproduce
Setup lazy-loaded routes and make a mistake by forgetting that it must not be an import but a function that returns the import statement
What is expected?
An error message that says the component is not valid (because it is a promise) and that the expected type is a function
What is actually happening?
Vue shows the following error message:
The text was updated successfully, but these errors were encountered: