Closed pedrosousa closed 2 years ago
Hi. Thanks for the report. I will try to fix it in a few minutes.
Am I right that you are compiling PostCSS & Autoprefixer into JS bundle and error came from this bundle?
I prepared a fix https://github.com/ai/nanocolors/commit/a19efb118fff26fe3ca2e741995a7930ad697bb0
I will release it when you confirm that bug happens in JS bundle
The error occurs when running gatsby develop
Sorry, I am not familiar with Gatsby.
What gatsby develop
does?
Can you try update dependency to use nanocolors 0.2.11
?
gatsby develop does create a JS bundle and I believe that error came from that bundle
Thanks. nanocolors 0.2.11
should fix it.
how long do you think this will take to be updated?
@gganch Autoprefixer 9 has "nanocolors": "^0.2.1"
in dependencies
, so new 0.2.11
match this requirements. There is nothing to do from Autoprefixer side.
You need to update nanocolors
in your yarn.lock
or package-lock.json
. There are few options:
npm update
or yarn update
if your updating your dependencies often.nanocolors
manually to trigger the update: npm install nanocolors && npm uninstall nanocolors
should trigger the update.
autoprefixer
is a sub-dependency of our Gatsby-generated docs, due to thegatsby
andgatsby-plugin-material-ui
dependencies.The new
nanocolors
dependency, introduced in autoprefixer 9.8.7, broke our GatsbyJS builds with the following error:Example workflow run: https://github.com/cloudflare/cloudflare-docs/runs/3723763654?check_suite_focus=true
Excluding the
gatsby-plugin-material-ui
plugin seems to fix the issue, but we'd like to keep using it.This can probably be solved by some sort of
webpack
custom configuration (the error seems related to bothwebpack
andnanocolors
). Do you have any idea on what may be causing this issue?