Closed djurdjen closed 1 year ago
I don't know if this can help others, but I had the same issue, using "aliases" as written here: https://next.vuetifyjs.com/en/features/icon-fonts/#material-design-icons-js-svg
It was my fault, though: instead of importing import { aliases, mdi } from "vuetify/iconsets/mdi-svg";
I was importing import { aliases, mdi } from "vuetify/iconsets/mdi";
Adding -svg
and importing the right settings fixed the problem for me.
This seemed to do the trick! Thanks @Ismaele-silla !
Environment
Vuetify Version: 3.1.1 Vue Version: 3.2.45 Browsers: Chrome 108.0.0.0 OS: Mac OS 10.15.7
Steps to reproduce
import { mdiAccount } from "@mdi/js"
<v-icon :icon="mdiAccount" />
Expected Behavior
The
v-icon
component should output an element with an svg and pathActual Behavior
The path is being added into the class attribute and the icon is not being rendered
Reproduction Link
https://codepen.io/djurdjen/pen/jOpmQPq?editors=101
Other comments
The provided codepen is a copy from the pen in the vuetify documentation (https://next.vuetifyjs.com/en/components/icons/)