quasarframework / quasar-ui-qiconpicker

QIconPicker - Quasar App Extension
https://qiconpicker.netlify.app
MIT License
56 stars 19 forks source link

Can't work in vite, cannot find icon set found called material-icons #177

Open Junvary opened 1 year ago

Junvary commented 1 year ago

For a legitimate bug, in order to process faster, please go here https://codepen.io/Hawkeye64/pen/vYYYewG, fork the codepen, add code to reproduce the bug and submit link here (don't forget to save your codepen):

Describe the bug QIconPicker: cannot find icon set found called material-icons

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Casperovskii commented 1 year ago

Hi! I met same problem and temporary solution for me is using preloaded icons: https://github.com/quasarframework/quasar-ui-qiconpicker/blob/main/docs/src/examples/CustomIconSet.vue

<!-- in template -->
<q-icon-picker
            ...
            :icons="icons"
           ...
          />
<!-- in script section -->
  import materialIcons from '@quasar/quasar-ui-qiconpicker/src/components/icon-set/material-icons'
  ...
  data: function () {
      return {
        ...
        icons: materialIcons.icons, // icons for icon-picker
        ...
      }
    },

This solution is forcing you to use 1 icon set (but you can provide your own selector with pre-import sets).