unplugin / unplugin-icons

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

work with windicss will catch an warn after run dev server #134

Open pincman opened 2 years ago

pincman commented 2 years ago

first if install @svgr/core by pnpm for react get an warn

 WARN  Issues with peer dependencies found
.
└─┬ unplugin-icons
  └── ✕ unmet peer @svgr/core@^5.5.0: found 6.1.2

and then overrides it in package.json

"pnpm": {
        "overrides": {
            // ...others
            "@svgr/core": "^5.5.0"
        }
    }

pnpm i and run dev server by pnpm dev,catch the warn

Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
antfu commented 2 years ago

I don't think this is related, since neither windicss or unplugin-icons uses postcss