unplugin / unplugin-icons

🤹 Access thousands of icons as components on-demand universally.

Home Page:https://www.npmjs.com/package/unplugin-icons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

work with windicss will catch an warn after run dev server

pincman opened this issue · comments

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.

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