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

Custom icons problem #150

Open
playertk opened this issue Jan 13, 2022 · 0 comments
Open

Custom icons problem #150

playertk opened this issue Jan 13, 2022 · 0 comments

Comments

@playertk
Copy link

playertk commented Jan 13, 2022

customCollections: {
        // key as the collection name
        'my-icons': {
          play: '<svg><!-- ... --></svg>',
          // load your custom icon lazily
          settings: () => fs.readFile('../public/svg-icon/play.svg', 'utf-8'),
          /* ... */
        },
      },

// generated by unplugin-vue-components

 Iconplay: typeof import('~icons/ic/onplay')['default']

console.error

Icon `ic:onplay` not found

There seems to be a problem with the automatically generated path
The correct path is more likely to be like this

 Iconplay: typeof import('~icons/my-icons/play')['default']
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

1 participant