Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pincman opened this issue Dec 19, 2021 · 1 comment
Open

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

pincman opened this issue Dec 19, 2021 · 1 comment

Comments

@pincman
Copy link

pincman commented Dec 19, 2021

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
Copy link
Member

antfu commented Dec 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants