我在Angular10中有一个项目,得到了奇怪的TS (TSLint)错误。在我使用$localize的Visual Studio Code everywhere中,我得到了消息Cannot find name '$localize'.ts(2304)的错误信息,但是当我在新的选项卡中打开polyfills.ts文件(在这个文件中,$localize被导入到项目import '@angular/localize/ini
Angular 9 introduced a global `$localize()` function that needs to be loaded.Please run `ng add @angular/localize` from the Angular CLI.Please run `ng add @angular/localize` from the Angular CLI.` onto the global scope
ng add @angular/localize不修改angular.json,ng extract-i18n失败时出现以下错误:An unhandled在extract-i18n angular.json中添加目标的
Data path "" should have required property 'browserTarget'.
我得到了这个错误 Error: Uncaught (in promise): TypeError: _angular_localize_init__WEBPACK_IMPORTED_MODULE_3__$localize is not a function
TypeError: _angular_localize_init__WEBPACK_IMPORTED_MODULE_3__.$localize is not a function 我已经在我的模板文件中进行了本地化工作</e
Angular 9 introduced a global `$localize()` function that needs to be loaded.Please run `ng add @angular/localize` from the Angular CLI 条件: "@angular/core": "^10.0.0",
"@angular/elements": &qu
node_modules/@angular/localize
npm ERR!例如,如果我的项目直接依赖于包A和B,并且安装了A版本的12.0.0,但我的B版本对PackageA的^11.0.0具有对等依赖关系,那么我将得到一个冲突的对等依赖错误,因为我使用的是带有可能与之不兼容的然而,这是该文件中唯一提到@angular/localize的地方--或者是在中。我还没有明确要求安装它。我不知道npm为什么要安装11.2.10 of @angular/