我最近在现有的angular 7应用程序中添加了第二个项目。我的想法是在工作空间中有多个项目。我使用angular CLI创建了第二个项目 ng generate application my-other-app 已在项目文件夹下创建了项目,但当我尝试为应用程序提供ng服务器时,收到以下错误消息 ng serve --project="my-other-app"
Schema validation failed with the following errors:
Data path "" should NOT have additional prope
我将我的angular和我的angular项目版本更新为angular 7。但是...当我尝试运行时,我遇到了这个问题:
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.1.1 <3.2", would install "3.2.2").
Incompatible peer dependencies found. See above.
我怎么才能修复它呢?如果可能,请安装
我尝试在我的项目中使用库。但是,当我编译代码时,我会收到以下警告:
WARNING in ./node_modules/ng-zorro-antd/fesm5/ng-zorro-antd-core.js 2294:66-84
"export 'ɵɵdefineInjectable' was not found in '@angular/core'
这将导致运行时错误:
Uncaught TypeError: Object(...) is not a function
at ng-zorro-antd-core.js:2294
at Mod
我尝试运行以下Angular项目:https://github.com/MangeshPersonal/Observabledemo.git
将其克隆,cd到根文件夹并执行ng serve。获取错误:
Local workspace file ('angular.json') could not be found.
Error: Local workspace file ('angular.json') could not be found.
at WorkspaceLoader._getProjectWorkspaceFilePath (/usr/lo
我正在尝试将一个项目从Angular 7升级到8。在运行ng update @angular/cli @angular/core时,我得到了以下错误:
Package "@swimlane/ngx-charts" has an incompatible peer dependency to "zone.js" (requires "^0.8.26", would install "0.9.1").
有没有办法从我的ng更新中排除zone.js?它已经在0.8.26上了。
我更新了我的angular-cli,然后我在ng服务中遇到错误
Callback was already called.
at throwError (node_modules\neo-async\async.js:14:11)
at node_modules\neo-async\async.js:2805:7
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
这是我的项目包的版本:
Angu
当我运行bower安装时,我得到了下面的输出,让我选择一个角的版本:
Unable to find a suitable version for angular, please choose one:
1) angular#~1.2.9 which resolved to 1.2.29 and is required by at-table#1.0.7
2) angular#~1.3 which resolved to 1.3.20 and is required by angular-notify#2.5.0
3) angular#>=1.0.8 which resolved to 1
今天我试着用vmware clarity创建项目。但是由于某些原因,它抛出了错误。我无法编译这个项目。我认为该命令是安装版本2,它不支持该项目。 下面是error、angular.json和package.json文件。 是否可以在vmware clarity中安装特定版本 错误 WARNING in ./node_modules/@clr/angular/fesm5/clr-angular.js 749:39-57
"export 'ɵɵdefineInjectable' was not found in '@angular/core'
WARNI
我对角度和材料设计很陌生。来自iOS开发公司,这对我来说很难。我有项目在我的公司,我正在寻找文件的材料设计版本2.0.0-beta.7的角度。我知道有很好的站点包含每个组件的文档,但我注意到这是针对2.0.0-beta.12版本的,例如,所有前缀Md都更改为Mat。我试图将Md更新到2.0.0-beta.12版本,但在我的项目中有这样的问题:
npm WARN @angular/cdk@2.0.0-beta.12 requires a peer of @angular/core@~4.4.4 but none was installed.
npm WARN @angular/cdk@2.0.0
我使用流星根据这里提供的示例构建一个简单的应用程序:
当符合流星和相关的软件包安装(角材料,角,角动画等)。
但是,我已经在两台安装不同的计算机上尝试了这一点,在编译网站时,我一直在铬控制台中得到这个错误(它在流星控制台中没有错误)。然后,它不会在制表符之间切换,每次单击都会出现错误。
我看了这里的解决方案,但我不明白这对我有什么影响,因为我使用的是流星软件包管理器。
TypeError: runner.setHost is not a function
at angular-animate.js:2686
at Scope.$digest (angular_ang
我已经将travis-ci集成到了我的GitHub帐户()中。
当我将@angular/cli版本从1.7.4更新到6.0.0-rc.3时,构建开始失败时出错:
Local workspace file ('angular.json') could not be found.
Error: Local workspace file ('angular.json') could not be found.
at WorkspaceLoader._getProjectWorkspaceFilePath (/home/travis/build/pradeep0
我的系统js配置看起来像
/**
* Created by nick_ on 5/7/2016.
*/
(function(global) {
// map tells the System loader where to look for things
var map = {
'app': 'app', // 'dist',
'rxjs': 'node_modu
我已经在一台新的机器上安装了最新的angular-cli,并且我正在尝试使用以前的cli版本生成的项目
我收到了这个警告
Your global Angular CLI version (1.6.4) is greater than your local
version (1.6.3). The local Angular CLI version is used.
To disable this warning use "ng set --global warnings.versionMismatch=false".
虽然项目工作正常,但为了用最新的依赖项更新项目并避免此消息