简体   繁体   English

Angular 6 到 12 迁移问题

[英]Angular 6 to 12 Migration Issues

I am getting below error after i upgraded from Angular 6 to Angular 12我从 Angular 6 升级到 Angular 12 后出现以下错误

styles.css - Error: styles.css from Css Minimizer
Error: [object Object] is not a PostCSS plugin
    at Processor.normalize (C:\xxxxx\xxxxx\node_modules\postcss\lib\processor.js:168:15)

Can anyone help me what can be reason for this?谁能帮助我这是什么原因?

Looks like the Processor can't make sense of the Object being passed to it.看起来处理器无法理解传递给它的 Object。 I just recently had something very similar from a migration as well so might suspect some version mismatch.我最近刚从迁移中得到了一些非常相似的东西,所以可能会怀疑某些版本不匹配。 For my case the problem was caused by old package_lock.就我而言,问题是由旧的 package_lock 引起的。

Just the get this out of the way.只是把这个排除在外。 Remove packacge-lock and node_modules rm -rf node_modules package-lock.json , add compatible postcss and install other packages as well npm install -D postcss && npm install .删除 packacge-lock 和 node_modules rm -rf node_modules package-lock.json ,添加兼容的 postcss 并安装其他包npm install -D postcss && npm install

You could also go over some migration steps so see if you missed something.您还可以通过一些迁移步骤 go 看看您是否遗漏了什么。 https://update.angular.io/?l=3&v=6.0-12.0 https://update.angular.io/?l=3&v=6.0-12.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Angular 8 到 Angular 9 的迁移问题 - Angular 8 to Angular 9 migration issues 在angular2中迁移到RC4之后的问题 - Issues after Migration to RC4 in angular2 Angular 从 v12 迁移到 v14 - Angular migration from v12 to v14 迁移失败:发现不兼容的对等依赖项 - 将 Angular 升级到版本 12 - Migration failed: Incompatible peer dependencies found - Upgrading Angular to Version 12 Angular 6 到 12 迁移:收到多个警告:Css Minimizer 插件:> 意外的“$” - Angular 6 to 12 Migration: Getting Multiple Warning: Css Minimizer Plugin: > Unexpected "$" 迁移到Angular2 final后的问题-意外令牌 - Issues after migration to Angular2 final - Unexpected token < SCSS。 Angular Angular 从版本 11 迁移到 12 期间的重大问题 - SCSS. Angular Material Issue during Angular migration from version 11 to 12 从 12 到 13 的角度迁移出现错误:无法解构“buildOptions.sourceMap”的属性“styles”,因为它未定义 - Angular migration from 12 to 13 getting error : Cannot destructure property 'styles' of 'buildOptions.sourceMap' as it is undefined 错误:迁移失败:发现不兼容的对等依赖项(将 Angular 12 升级到 13 时) - Error: Migration failed: Incompatible peer dependencies found (when upgrading Angular 12 to 13) Angular 迁移 12 到 14 运行 nx 服务<app_name>失败的</app_name> - Angular migration 12 to 14 running nx serve <app_name> failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM