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
<scriptsetuplang="ts">importVirtualComponentfrom'./VirtualComponent'</script>
<template>
<VirtualComponent />
<!-- Edit this file to play around with Nuxt but never commit changes! -->
<div>
Nuxt 3 Playground
</div>
</template>
<stylescoped></style>
You will see the warning once Nuxt starts:
[nuxt] Could not resolve id virtual:xxx D:\work\projects\userquin\GitHub\userquin\nuxt-org\nuxt\playground\index.html
Environment
Reproduction
Open the following SB repo using
virtual:pwa-info
:https://stackblitz.com/edit/nuxt-starter-dnvrut?file=app.vue,package.json,nuxt.config.ts
Once Nuxt starts, there is a warning about resolving
virtual:pwa-info
(should be\0virtual:pwa-info
):You can also reproduce it in the nuxt repo using the playground , just add this to the playground
nuxt.config.ts
file:Add this component on playground folder:
And add the component to the
app.vue
:You will see the warning once Nuxt starts:
Describe the bug
Resolved Vite virtual modules should be also excluded,
\0virtual:
should also be excluded: https://vitejs.dev/guide/api-plugin.html#virtual-modules-convention.There are a few modules only checking for
virtual:
prefix, we should also review the usage:I'm preparing a PR.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: