unplugin / unplugin-icons

🤹 Access thousands of icons as components on-demand universally.
https://www.npmjs.com/package/unplugin-icons
MIT License
3.92k stars 141 forks source link

prime icon not working #194

Closed Jogai closed 1 year ago

Jogai commented 2 years ago

Set up the project as described in the readme. Including auto import: https://github.com/antfu/unplugin-icons#auto-importing

The important part of vite.config.js:

// https://github.com/antfu/unplugin-auto-import
AutoImport({
  imports: ["vue", "vue/macros", "vue-router", "@vueuse/core"],
  dts: true,
  eslintrc: {
    enabled: true
  }
}),

// https://github.com/antfu/unplugin-icons
Icons({
  compiler: "vue3",
  autoInstall: true
}),

// https://github.com/antfu/vite-plugin-components
Components({
  dts: true,
  resolvers: [IconsResolver()]
}),

// https://github.com/nabla/vite-plugin-eslint
eslintPlugin(),

Several icons work, and I see vite installing the sets I choose, but the prime icons wont work.

<i-ph-sign-out-fill /> //<- works
<i-prime-sign-out /> //<- broken
userquin commented 2 years ago

try adding enabledCollections: ['prime'], to the IconsResolver

Jogai commented 2 years ago

Thanks, but no. Works for other sets tough. And "@iconify-json/prime": "^1.1.1", is added to my packages.json I saw, but its not displayed.

WormGirl commented 1 year ago

mee to , i use the set of ion, Most of the icons can be used normally, but some icon not work, like ~icons/ion/document-text-outline, this got 404

antfu commented 1 year ago

We temporarily close this due to the lack of enough information. Please provide a minimal reproduction to reopen the issue. Thanks.

Why reproduction is required

WormGirl commented 1 year ago

mee to , i use the set of ion, Most of the icons can be used normally, but some icon not work, like ~icons/ion/document-text-outline, this got 404

Today while debugging the issue, I found out that it was my own mistake. The main reason for the 404 error was that the request was matching the address configured in the proxy.