Open UrchenkoV opened 2 years ago
same
What should we do?
I also had this issues, didn't find the direct cause, but a stop-gap between upgrading to Nuxt bridge was to revert to v0.2.3. Seems to be working for now.
Same here with Nuxt2.
same here! I even remove vuetify, and axios modules and still get this error in repeat! didn't find any solution for it
can so confirm... any update here?
same here...
You can get rid of the warning by installing postcss-preset-env version 7.
did you find a solution for this error?
Reason this error is occurring: Run yarn why postcss-preset-env
=> Found "postcss-preset-env@6.7.1"
info Reasons this module exists
- "nuxt-vite" depends on it
- Hoisted from "nuxt-vite#postcss-preset-env"
- Hoisted from "nuxt#@nuxt#webpack#postcss-preset-env"
And if you check the nuxt-vite
package.json
: https://github.com/nuxt/vite/blob/20559a0b3887cd0f5c70750da82d5d8d78097b11/package.json#L36
And the core reason this message shows up: postcss-preset-env
6.7.1 release notes:
Added notice when using preset-env with PostCSS > 7 to prompt to upgrade.
A PR to update this postcss-preset-env
for nuxt-vite
is here: https://github.com/nuxt/vite/pull/231
You can add the resolutions
(Yarn)/overrides
(NPM) to your package.json
so that it specifically uses the postcss-preset-env
7.x version. After doing this the error is gone and as far as I can tell nothing breaks.
You DO NOT need to add postcss-preset-env
as a dependency
of your own project (it is already installed by nuxt-vite
).
Yarn docs: resolutions
NPM docs: overrides
package.json
(Yarn example)
{
...
"resolutions": {
"postcss-preset-env": "^7.0.0"
},
"dependencies": {
"nuxt-vite": "0.3.5"
},
...
}
Nuxt with vite gives this error.
How fixer?