Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'elementClass' does not exist in type 'Partial<ModuleOptions>' #284

Open
BulatSa opened this issue Jun 19, 2023 · 1 comment
Open

'elementClass' does not exist in type 'Partial<ModuleOptions>' #284

BulatSa opened this issue Jun 19, 2023 · 1 comment

Comments

@BulatSa
Copy link

BulatSa commented Jun 19, 2023

Hello, i start new project with Nuxt3 and have some issue, use @nuxtjs/svg-sprite@1.0.2, typescript@5.1.3, nuxt@3.5.3

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@nuxtjs/svg-sprite',],
  svgSprite: {
    input: '~/assets/img/svg',
    output: '~/assets/sprite',
    defaultSprite: 'icons',
    elementClass: 'icon',
    spriteClassPrefix: 'icon-',
  },
})

image

@ikasianiuk
Copy link

it seems that currently we can't modify the css class of the icon, since elementClass is not supported. Can it be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants