unplugin-icons icon indicating copy to clipboard operation
unplugin-icons copied to clipboard

Cannot read properties of undefined (reading 'replace')

Open binsarjr opened this issue 3 years ago • 0 comments

Describe the bug

icon resolver not working on svelte (laravel inertia)

// vite.config.js
Icons({
    compiler: 'svelte',
    autoInstall: true
}),
IconsResolver({
    prefix: 'icon'
}),

Reproduction

IconsResolver()

System Info

System:
    OS: Linux 6.0 Archcraft
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    Memory: 5.83 GB / 11.57 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 19.0.1 - /bin/node
    Yarn: 1.22.19 - /bin/yarn
    npm: 8.19.2 - /bin/npm
  Browsers:
    Firefox: 106.0.5

Used Package Manager

pnpm

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

binsarjr avatar Jan 31 '23 04:01 binsarjr