I came across this error but unrelated to Bootstrap. It was with Next.js / Tailwind CSS.
I was getting this error:
warn - ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[2].oneOf[8].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[2].oneOf[8].use[2]!./src/styles/globals.css
Warning
(1:1) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.
./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[2].oneOf[8].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[2].oneOf[8].use[2]!./src/styles/globals.css
As part of the Next.js tailwind installation, tailwind suggests installing with postcss
and autoprefixer
.
I had updated the postcss
and autoprefixer
npm packages, but I was still getting this error.
To fix it I needed to update all of the tailwind plugins.
Here is an example of how to upgrade the tailwind css plugins, this is doing the whole tailwind installation:
npm install --save-dev tailwindcss@latest \
@tailwindcss/typography@latest \
@tailwindcss/forms@latest \
@tailwindcss/aspect-ratio@latest \
@tailwindcss/line-clamp@latest \
postcss@latest \
autoprefixer@latest