vuetifyjs / vuetifyjs/nuxt-module

Object literal may only specify known properties, and 'mdi' does not exist in type

Open
#293 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: icons area: types bug priority: p3: medium
Dominant language
TypeScript
Stars
286
Forks
35
Avg merge
5d 21h
Merged PRs (30d)
4

Description

vuetify: {
    vuetifyOptions: {
      icons: {
        defaultSet: 'mdi',
        aliases,
        sets: {
          custom,
          mdi,
        },
      },
    },
Object literal may only specify known properties, and 'mdi' does not exist in type 'IconFontName[] | FontIconSet[]'.ts(2353)
(property) mdi: IconSet

https://nuxt.vuetifyjs.com/guide/
https://vuetifyjs.com/en/features/icon-fonts/#usage

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the configuration shown in the Nuxt Vuetify module guide and compare it with Vuetify's icon-font usage documentation. Trace the TypeScript type for vuetifyOptions.icons.sets and determine what must change so the shown mdi configuration type-checks without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.