-
Notifications
You must be signed in to change notification settings - Fork 115
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
Throws "Error: PostCSS plugin postcss-import requires PostCSS 8" even when PostCSS 8 is installed #435
Comments
Is |
Yep, 4.0.4 |
Got the same error. Everything else seems up-to-date. |
What's the output of |
Same issues here. Output from
|
TBH, I am completely mystified why this is happening. Can somebody make a reduced test case? |
I think in my case it may be something to do with vuepress calling an older version of postcss under the hood... |
I has this error happen to me while I only had postcss-cli in my explicit dependencies. |
Just ran into this myself today, the culprit being Storybook that references an older |
So what's the solution? :D |
We ended up pinning "postcss": "^8.1.9",
"postcss-import": "12.0.1", |
@simenbrekken thank you. That worked. |
Just downgrade to |
For anyone else whom @simenbrekken's does not work for, you might have installed postcss-cli globally. Please update the CLI to at least version 8, which loads version 8 of postcss. That's what worked for me. |
Same here.
|
I cannot debug anything without a reduced test case demonstrating this issue. |
@simenbrekken thank you! Worked for me. |
…ning postcss-import 12.x postcss/postcss-import#435
…nto master * 'master' of git://github.com/EarthCubeGeochron/Sparrow: (359 commits) Revert "Integrate frontend changes into develop" intermittent failing tests un decorated xfail decoration for failing test Fix changelog additions Added some small changes docs header image geo_entity prototype Importer test still fails Somewhat better test-isolation class Created a failing test of isolation Casey's frontend and backend changelog Casey's frontend and backend changelog fixup explicit session querying test won't pass. Creates an extra session isolated geoentity component error finding images/gowganda.jpg... not sure what this is? This might be docusaurs trying to configure my github photo on the blog page? upgraded docusaurus, issues with postCSS 8, temporary solution is pinning postcss-import 12.x postcss/postcss-import#435 Fixed catastrophic datasheet bug on empty Sparrow Add SPARROW_DATA_DIR environment variable to backend ...
* commit '279984c': (358 commits) intermittent failing tests un decorated xfail decoration for failing test Fix changelog additions Added some small changes docs header image geo_entity prototype Importer test still fails Somewhat better test-isolation class Created a failing test of isolation Casey's frontend and backend changelog Casey's frontend and backend changelog fixup explicit session querying test won't pass. Creates an extra session isolated geoentity component error finding images/gowganda.jpg... not sure what this is? This might be docusaurs trying to configure my github photo on the blog page? upgraded docusaurus, issues with postCSS 8, temporary solution is pinning postcss-import 12.x postcss/postcss-import#435 Fixed catastrophic datasheet bug on empty Sparrow Add SPARROW_DATA_DIR environment variable to backend Updated changelog ...
* main: Update version info and changelog master -> main in CI Potentially fix get-sparrow script docs header image error finding images/gowganda.jpg... not sure what this is? This might be docusaurs trying to configure my github photo on the blog page? upgraded docusaurus, issues with postCSS 8, temporary solution is pinning postcss-import 12.x postcss/postcss-import#435 WIP try to get docs to compile bundled version docs, warn against clone added 1.6 tag to sparrowdata/backend Update schema-based-importers.md no schema html page bundled sparrow docs, schema page html not found Fix error in get-sparrow script Datascience Link python test and debugger documentation moved the root of datascience so now the route is docs/datascience delete removed files causing errors
* origin/develop: (32 commits) new-sample and new-project buttons sample cards not draggable when not editing not draggable if no sessions rearrange model-views rearranging organize files and small edits metrics endpoint core-plugin NO VIEW Update version info and changelog master -> main in CI Fix docs changelog Potentially fix get-sparrow script symlink changelog to docs new frames mapStyles no as frontend plugins formatting metrics view now external plugin html2canvas and samplePage frame docs header image error finding images/gowganda.jpg... not sure what this is? This might be docusaurs trying to configure my github photo on the blog page? upgraded docusaurus, issues with postCSS 8, temporary solution is pinning postcss-import 12.x postcss/postcss-import#435 ...
Closing, since no reduced test case has presented itself. |
I'm not using any post css and I'm getting this when using |
In my case it was a bunch of modules requesting postcss@7 as dependency. See "resolutions": {
"postcss": "8"
} |
Thanks @karladler. |
I had trouble with |
I had a similar error on building a Grafana plugin, but the dependencies are internal to the plugin (I can't update them). |
storybook has a conflict with cra due to versioning issues on babel loader and a faulty check on the cra side (see: storybookjs/storybook#13183 and facebook/create-react-app#10123 (comment)). this required either some hackery on the command side (by disabling preflight checks) or upgrading react-scripts to 5.0. as react scripts is not a direct dependency at runtime when serving our application, i opted for this approach. another issue that cropped up was postcss requiring version 8 due to transistive dependencies (design system -> chakra -> tailwind -> postcss). this was fixed by installing a direct dependency on postcss @ 8, which was the approach mentioned here: postcss/postcss-import#435. A dev mentioned that the API between 7/8 did not differ much and the release notes for 8 (https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users) also mentioned that there are no significant differences for end users, so this should be safe. tl;dr: build issues are fixed by upgrading dependencies. if you ever read this message, or any of the previous long commit messages, please drop me a :ultrafastparrot: thx
On my file package.json I configured this:
I noticed the file package-lock.json had a section for an specific package I use (@ckeditor/ckeditor5-dev-utils) and it was requiring specific versions installed:
|
Thanks @karladler at #435 (comment) for the yarn solution. In my case, I am using npm. I didn't use
when I build my web app. Because some dependencies of dependencies are using PostCSS 7 Adding overrides:
in package.json which is similar to Then run Note
|
The text was updated successfully, but these errors were encountered: