Closed bojowa closed 4 years ago
You are not providing much information there. What kind of project are you using ? What builder ? Transpiler ? Have you tried to delete your node_modules and re run an installation ?
npm install
# or
yarn
I'm on a @vue/cli project with webpack4 typescript and it works perfectly
// [...]
import { mdiAccount } from '@mdi/js'
// [...]
console.log(mdiAccount)
// [...]
Shows in console
M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z
Closing this out as this is most likely related to an incorrectly configured project as explained above.
Thanks @St-Ex! 👍
npm install @mdi/js has already install, this is src/main.js import { mdiAccount } from '@mdi/js' do console.log(mdiAccount),it showns that. why this?