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
Classes not passed down components from vue-router when component has a comment, only happens on production build.
Reproduction
Here's a demo repository with the issue, if you run vite it will work, but if you build and use a server like caddy --root dist --listen :3001 you'll notice that no class are injected when rendering home or sidebar components.
Second.vue is the only component without a comment inside the template, during development all classes defined for router-link are passed down to the components but those classes are missing when building for production as shown in the image below:
System Info
requiredvite version: rc4
required Operating System: mac os x
required Node version: 12.18.4
The text was updated successfully, but these errors were encountered:
Describe the bug
Classes not passed down components from vue-router when component has a comment, only happens on production build.
Reproduction
Here's a demo repository with the issue, if you run
vite
it will work, but if you build and use a server likecaddy --root dist --listen :3001
you'll notice that no class are injected when renderinghome
orsidebar
components.https://github.com/guillenotfound/sample-router-class-error
Second.vue
is the only component without a comment inside the template, during development all classes defined forrouter-link
are passed down to the components but those classes are missing when building for production as shown in the image below:System Info
vite
version: rc4The text was updated successfully, but these errors were encountered: