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 get a weird warning about resource props, I thought because optional props are not required in this example since we've provided a default value and we're using the NotFound component in the path: /:catchAll(.*), so I set required to false in order to get rid of this warning:
main.js?t=1699883629605:10
[Vue warn]: Missing required prop: "resource"
at <NotFound onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > >
at <RouterView>
at <App>
Here is the change I made:
import{defineProps}from"vue";defineProps({resource: {type: String,required: false,// <-- This has to be false?default: "page",},});
Hi,
I get a weird warning about
resource
props, I thought because optional props are not required in this example since we've provided adefault
value and we're using theNotFound
component in the path:/:catchAll(.*)
, so I setrequired
tofalse
in order to get rid of this warning:Here is the change I made:
Here are my versions:
The text was updated successfully, but these errors were encountered: