-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
needs: more infoReporter must clarify the issueReporter must clarify the issue
Description
🐞 Bug report
I upgrade angular and angular material from 11 to 12.
When I'm serve the project npm start
I start to see this error
styles.css - Error: styles.css from Css Minimizer
Error: [object Object] is not a PostCSS plugin
at Processor.normalize (/Users/ofirf 1/dev/management/mgmt-console/node_modules/postcss/lib/processor.js:168:15)
at new Processor (/Users/ofirf 1/dev/management/mgmt-console/node_modules/postcss/lib/processor.js:52:25)
at postcss (/Users/ofirf 1/dev/management/mgmt-console/node_modules/postcss/lib/postcss.js:55:10)
at cssnanoPlugin (/Users/ofirf 1/dev/management/mgmt-console/node_modules/cssnano/dist/index.js:137:31)
at cssnanoMinify (eval at transform (/Users/ofirf 1/dev/management/mgmt-console/node_modules/css-minimizer-webpack-plugin/dist/minify.js:34:28), <anonymous>:51:33)
at minify (/Users/ofirf 1/dev/management/mgmt-console/node_modules/css-minimizer-webpack-plugin/dist/minify.js:15:32)
at Object.transform (/Users/ofirf 1/dev/management/mgmt-console/node_modules/css-minimizer-webpack-plugin/dist/minify.js:35:24)
at execFunction (/Users/ofirf 1/dev/management/mgmt-console/node_modules/jest-worker/build/workers/threadChild.js:158:17)
at execHelper (/Users/ofirf 1/dev/management/mgmt-console/node_modules/jest-worker/build/workers/threadChild.js:137:5)
at execMethod (/Users/ofirf 1/dev/management/mgmt-console/node_modules/jest-worker/build/workers/threadChild.js:141:5)
I saw this closed issue but
execute the command rm -rf node_modules && npm cache clear --force && npm install
as suggested not help.
Command (mark with an x
)
- serve
Is this a regression?
Yes it regression, when I back to the master branch with angular 11 it work as should.
🔥 Exception or Error
styles.css - Error: styles.css from Css Minimizer
Error: [object Object] is not a PostCSS plugin
at Processor.normalize (/Users/ofirf 1/dev/management/mgmt-console/node_modules/postcss/lib/processor.js:168:15)
at new Processor (/Users/ofirf 1/dev/management/mgmt-console/node_modules/postcss/lib/processor.js:52:25)
at postcss (/Users/ofirf 1/dev/management/mgmt-console/node_modules/postcss/lib/postcss.js:55:10)
at cssnanoPlugin (/Users/ofirf 1/dev/management/mgmt-console/node_modules/cssnano/dist/index.js:137:31)
at cssnanoMinify (eval at transform (/Users/ofirf 1/dev/management/mgmt-console/node_modules/css-minimizer-webpack-plugin/dist/minify.js:34:28), :51:33)
at minify (/Users/ofirf 1/dev/management/mgmt-console/node_modules/css-minimizer-webpack-plugin/dist/minify.js:15:32)
at Object.transform (/Users/ofirf 1/dev/management/mgmt-console/node_modules/css-minimizer-webpack-plugin/dist/minify.js:35:24)
at execFunction (/Users/ofirf 1/dev/management/mgmt-console/node_modules/jest-worker/build/workers/threadChild.js:158:17)
at execHelper (/Users/ofirf 1/dev/management/mgmt-console/node_modules/jest-worker/build/workers/threadChild.js:137:5)
at execMethod (/Users/ofirf 1/dev/management/mgmt-console/node_modules/jest-worker/build/workers/threadChild.js:141:5)
🌍 Your Environment
Angular CLI: 12.0.3
Node: 14.15.5
Package Manager: npm 6.14.11
OS: darwin x64
Angular: 12.0.3
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, material, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1200.3
@angular-devkit/build-angular 12.0.3
@angular-devkit/core 12.0.3
@angular-devkit/schematics 12.0.3
@nguniversal/express-engine 11.1.1
@schematics/angular 12.0.3
rxjs 6.6.7
typescript 4.2.4
If it help my webpack
npm ls webpack
mgmt-console@2.1.0 /Users/ofirf 1/dev/management/mgmt-console
└─┬ @angular-devkit/build-angular@12.0.3
└── webpack@5.38.1
My Node version 14.15.5
Metadata
Metadata
Assignees
Labels
needs: more infoReporter must clarify the issueReporter must clarify the issue