Closed RiesvGeffen closed 7 months ago
Thanks for your response. I'm checking it.
@RiesvGeffen
To optimize the size of the lib. I components need to import from main app. You can define closeIcon now in options.
/**
* You can do manually import the components you are using.
* https://vuetifyjs.com/en/features/treeshaking/#manual-imports
*/
const vuetify = createVuetify({
components: {
VDefaultsProvider,
VDialog,
VCard,content.
VToolbar,
VBtn,
VIcon,
},
...
})
app.use(VuetifyNotifier, {
default: {
...
closeIcon: 'mdi-close', //default close icon for component
...
},
})
At first I didn't have components defined in my
createVuetifyApp
, this gave me the following errors:Failed to resolve component: VToolbar
, for a total of 6 components, when trying to use$notifier.component()
.I fixed this with
import * as components from 'vuetify/components'
and (in my Vuetify plugin):Now I see the component dialog, but in my console I get the following error:
Usually I import the icon explicitly and do
<v-icon :icon="mdiClose" />
.Any suggestions as to how I can fix this icon problem? And is there any chance I can still leave out the import of all components?
Update: As of now I use the following in my
nuxt.config.ts
:Two comments:
existsButton
a typo? In another thread I read English isn't your best/first language, I think you meanexitButton
.