You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MiniCssExtractPlugin works as expected wtih angular 12.1.x. If I use angular 12.2.x it tells me its not registered.. if I register it.. it tells me its already registered.
details
I'm trying to move to the latest version of angular 12... there are a lot of legacy css that just gets imported from some files in my common dir...
Heres my export with 12.1.x (it works):
Generating browser application bundles (phase: setup)...An unhandled exception occurred: ObjectMiddleware.register: serializer for mini-css-extract-plugin/dist/CssModule/null is already registered
[error] Error: ObjectMiddleware.register: serializer for mini-css-extract-plugin/dist/CssModule/null is already registered
at Object.register (C:\Users\alber\sites\af-client\public\portal\node_modules\@angular-devkit\build-angular\node_modules\webpack\lib\serialization\ObjectMiddleware.js:182:10)
at Function.getCssModule (C:\Users\alber\sites\af-client\public\portal\node_modules\mini-css-extract-plugin\dist\index.js:182:34)
at MiniCssExtractPlugin.apply (C:\Users\alber\sites\af-client\public\portal\node_modules\mini-css-extract-plugin\dist\index.js:389:44)
at createCompiler (C:\Users\alber\sites\af-client\public\portal\node_modules\@angular-devkit\build-angular\node_modules\webpack\lib\webpack.js:74:12)
at create (C:\Users\alber\sites\af-client\public\portal\node_modules\@angular-devkit\build-angular\node_modules\webpack\lib\webpack.js:127:16)
at webpack (C:\Users\alber\sites\af-client\public\portal\node_modules\@angular-devkit\build-angular\node_modules\webpack\lib\webpack.js:151:32)
at Object.f [as webpackFactory] (C:\Users\alber\sites\af-client\public\portal\node_modules\@angular-devkit\build-angular\node_modules\webpack\lib\index.js:55:16)
at createWebpack (C:\Users\alber\sites\af-client\public\portal\node_modules\@angular-devkit\build-angular\node_modules\@angular-devkit\build-webpack\src\webpack-dev-server\index.js:43:36)
at Object.runWebpackDevServer (C:\Users\alber\sites\af-client\public\portal\node_modules\@angular-devkit\build-angular\node_modules\@angular-devkit\build-webpack\src\webpack-dev-server\index.js:73:12)
at SwitchMapSubscriber.project (C:\Users\alber\sites\af-client\public\portal\node_modules\@angular-devkit\build-angular\src\dev-server\index.js:247:32)
at SwitchMapSubscriber._next (C:\Users\alber\sites\af-client\public\portal\node_modules\rxjs\internal\operators\switchMap.js:47:27)
at SwitchMapSubscriber.Subscriber.next (C:\Users\alber\sites\af-client\public\portal\node_modules\rxjs\internal\Subscriber.js:66:18)
at C:\Users\alber\sites\af-client\public\portal\node_modules\rxjs\internal\util\subscribeToPromise.js:7:24
at processTicksAndRejections (internal/process/task_queues.js:97:5)
tldr;
MiniCssExtractPlugin works as expected wtih angular
12.1.x
. If I use angular12.2.x
it tells me its not registered.. if I register it.. it tells me its already registered.details
I'm trying to move to the latest version of angular 12... there are a lot of legacy css that just gets imported from some files in my common dir...
Heres my export with
12.1.x
(it works):If i upgrade my angular versions from
12.1.4
to12.2.15 (latest for v12)
I get....So naturally I...
But then i get
ps im using:
The text was updated successfully, but these errors were encountered: