我正在尝试将角材料和cdk从版本7更新到8。两种软件包的更新都很好,但是每次迁移都失败,出现非常“有用”的错误
无法读取未定义迁移的属性“绿色”失败。有关更多详细信息,请参见上文。
我很难追踪这可能来自何处。我已经在整个项目中对“绿色”进行了常规搜索,但一无所获。我已经擦除了我的node_modules并重新安装了,但是继续得到它。
我什至在尝试仅执行迁移时就得到了这个
ng update @angular/material@8 --migrationOnly=true --from=7 --to=8
任何建议/帮助将不胜感激。
同样的错误在这里。日志指向中的onMigrationComplete().\node_modules\@angular\material\schematics\ng-update\index.js
,因此我删除了对该位置的引用chalk_1.default
:
之前
function onMigrationComplete(targetVersion, hasFailures) {
console.log();
console.log(chalk_1.default.green(` ✓ Updated Angular Material to ${targetVersion}`));
console.log();
if (hasFailures) {
console.log(chalk_1.default.yellow(' ⚠ Some issues were detected but could not be fixed automatically. Please check the ' +
'output above and fix these issues manually.'));
}
}
后
function onMigrationComplete(targetVersion, hasFailures) {
console.log();
console.log(` ✓ Updated Angular Material to ${targetVersion}`);
console.log();
if (hasFailures) {
console.log(' ⚠ Some issues were detected but could not be fixed automatically. Please check the ' +
'output above and fix these issues manually.');
}
}
使用AFTER版本时,迁移将贯穿
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句