ITADN

Unable to resolve path to module 'postcss-preset-env'

#1850Opentumatanquang 创建于 2026-06-11
T
tumatanquangcommented
### Reproduction link _No response_ ### Bug description I just updated the `postcss-preset-env` dependency from **11.1.0** to **11.3.0**. But when I run the following command: ``` npx eslint --ext .js,.jsx --fix . ``` I received the following error message: ``` D:\AdguardBrowserExtension-legacy\postcss.config.js 1:34 error Unable to resolve path to module 'postcss-preset-env' import/no-unresolved ``` This is my [postcss.config.js](https://github.com/tumatanquang/AdguardBrowserExtension-legacy/blob/main/postcss.config.js). ### Actual Behavior _No response_ ### Expected Behavior _No response_ ### Can you reproduce it with `npx @csstools/csstools-cli <plugin-name> minimal-example.css`? None ### `npx` Output ``` D:\AdguardBrowserExtension-legacy\postcss.config.js 1:34 error Unable to resolve path to module 'postcss-preset-env' import/no-unresolved ``` ### Extra config _No response_ ### What plugin are you experiencing this issue on? PostCSS Preset Env ### Plugin version 11.3.0 ### What OS are you experiencing this on? Windows ### Node Version 24.16.0 ### Validations - [x] Follow our [Code of Conduct](https://github.com/csstools/postcss-plugins/blob/master/CODE_OF_CONDUCT.md) - [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate. ### Would you like to open a PR for this bug? - [ ] I'm willing to open a PR
2 条评论