我想从Angular5迁移到Angular6,遵循
我尝试执行这三个命令,将.angular-cli.json更新为angular.json
npm install -g @angular/cli
npm install @angular/cli
ng update @angular/cli
不幸的是,仍然没有angular.json。如果我试图运行ng serve,就会得到以下错误:
Local workspace file ('angular.json') could not be found.
所以我把.angular-cli.json重命名为angular.json.但
我使用的是角8,当我运行代码时,这些错误就会出现。如何解决这个问题?
为什么会出现这些错误?有人能解释一下吗?
**调试失败中的错误。假表达。
ERROR in node_modules/rxjs/Subject.d.ts:1:15 - error TS2307: Cannot find module 'rxjs-compat/Subject' or its corresponding type declarations.
1 export * from 'rxjs-compat/Subject';
~~~~~~~~~~~~~~
从组件调用服务时出现错误。我正在尝试从提供的返回JSON的URL获取一些数据。每次我运行这段代码时,HTML加载成功,但是URL没有被调用,因为它在getData()上给出了一个错误,即它不是一个在运行这段代码时出现错误的函数。应该采取什么方法来解决呢?
this.dashboardService.getData这一行的问题是什么?
Here is the code:
**app.component.ts**
import { Component } from '@angular/core';
import { DashboardService } from './
我有个奇怪的情况。我遵循了第三方库安装的所有指南。实际上,当我运行ng serve时,我可以看到dis/供应商/redux下的库。但是当我打开浏览器时,我的应用程序不工作,当我检查开发工具中的资源时,这个库就不存在了。我应该在哪里找这个问题?我的意思是,怎么可能在dist文件夹中我可以看到库(在网络风暴中),但在浏览器上却没有出现?
// SystemJS configuration file, see links for more information
// https://github.com/systemjs/systemjs
// https://github.com/systemj
我在尝试运行git bash时遇到了这个问题。.switchMap未执行,并显示错误为“error TS2339:属性'switchMap‘在类型'Observable’上不存在”“
我使用的代码是:
import { User } from './../classes/user';
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { Observable, of } from 'rxj
现在我需要使用一个,但是它会在npm install之后抛出以下错误来升级rxjs版本,当我尝试只升级rxjs版本并运行ng-serve时,它会抛出异常和许多错误。
npm WARN queueing-subject@0.3.0 requires a peer of rxjs@^6.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN rxjs-websockets@6.0.2 requires a peer of rxjs@^6.1.0 but none is installed. Y
在我的Ionic3.9应用程序中,当在浏览器中运行ionic serve时,我得到了这个错误:__WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__.Observable.combineLatest is not a function。
我有插件错误,所以我删除了node_modules和yarn.lock,并通过$ yarn install重新安装了所有依赖项。
ERROR TypeError: __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__.Observable.combineLatest is not a f
我正在开发一个角度应用程序。当我正常使用ng serve运行它时,它运行时没有任何错误。但是,当我运行ng build --prod时,它会出现以下错误。
ERROR in Illegal State: referring to a type without a variable {"filePath":"/Users/admin/Documents/projects/simply-science-web-ui/simply-science/node_modules/@angular/forms/forms.d.ts","name":"N
将应用程序从角5迁移到6后,在运行ng时将弹出以下错误。
架构验证失败,出现以下错误:“数据路径”不应具有其他属性(项目)。错误:架构验证失败,出现以下错误:数据路径"“不应具有其他属性(项目)。在MergeMapSubscriber._registry.compile.pipe.operators_1.concatMap.validatorResult at MergeMapSubscriber._tryNext (/.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxj
我从中提取了样本模板代码,并从以下两个步骤开始-
npm install // worked fine and created node_modules folder with all dependencies
npm start // failed,错误如下-
node_node/rxjs/Subject.d.ts(16,22):error TS2415: Class 'Subject‘错误地扩展了基类’可观察‘。财产‘升降机’的类型是不兼容的。类型'<T,R>(运算符: Operator<T,R>) =>可观测‘是不能分配到类型’(运算
我刚刚将项目中的@progress/kendo-angular-l10n更新为Range6。当我运行ng-build时,它会抛出以下错误:
node_modules/@progress/kendo-angular-
l10n/dist/es2015/localization.service.d.ts(3,10):
error TS2305: Module '"C:/Samples/Project1/Web/node_modules/rxjs/Subject"'
has no exported member 'Subject'.
no
我有一个包含2个Angular 8应用程序的monorepo,我正在尝试使用新的deploy命令行界面功能将其中一个应用程序部署到firebase。因为我计划在这个项目中放置几个应用程序,所以我想去掉src文件夹中的一个,这样我的所有应用程序都位于projects文件夹下。
部署过程在src/文件夹中的应用程序上运行得很好,但在projects/app文件夹中的应用程序部署过程失败。
如何重现:
ng new project
cd project
ng g application app
ng add @angular/fire
在angular.json中将defaultProject设置为
我有一个Angular 10项目,它在本地构建成功,但在jenkins上构建时失败,出现以下错误。 [error] Error: Job name "..getProjectMetadata" does not exist.
at Observable._subscribe (/usr/lib/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/experimental/jobs/simple-scheduler.js:350:23)
at Observable._trySubscri