我在两台不同的计算机上 运行 相同的 Angular 项目时遇到问题
I Have a problem running the same Angular project on two different computers
我们有一个 angular 项目,到目前为止只有一名开发人员参与其中。
最近,一个新的开发人员加入了团队,现在两个开发人员应该在同一个项目上工作。
首先,我们在新计算机上 运行ning 项目时遇到问题,在这里我需要一些帮助以了解问题所在。
无论如何,我很想在 angular 项目中获得一些团队合作的技巧,例如,安排源代码管理(我们使用 svn,而不是 git),angular 升级策略。以及任何其他有用的提示。
我们在新电脑上遇到的问题如下:
Cannot GET /
ng
在浏览器控制台中我收到以下错误:
Failed to load resource: the server responded with a status of 404 (Not Found)
我 运行 命令 ng serve -o 在我的项目的根目录。
下面是ng serve -o
的编译输出
0% compiling
Compiling @angular/core : es2015 as esm2015
10% building 3/3 modules 0 activei 「wds」: Project is running at http://localhost:4200/webpack-dev-server/
i 「wds」: webpack output is served from /
i 「wds」: 404s will fallback to //index.html
chunk {main} main.js, main.js.map (main) 2.01 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 154 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 7.53 MB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 2.27 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 340 kB [initial] [rendered]
Date: 2020-04-26T17:21:45.905Z - Hash: 642489da10cb01318687 - Time: 73590ms
ERROR in The target entry-point "@fullcalendar/angular" has missing dependencies:
- @fullcalendar/core/types/input-types
- @fullcalendar/core/datelib/env
- @fullcalendar/core/datelib/duration
- @fullcalendar/core/datelib/formatting
- @fullcalendar/core/datelib/date-range
- @fullcalendar/core/datelib/locale
- @fullcalendar/core/validation
- @fullcalendar/core/structs/event-source
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
i 「wdm」: Failed to compile.
i 「wdm」: Compiling...
i 「wdm」: wait until bundle finished: /
Date: 2020-04-26T17:21:54.537Z - Hash: 642489da10cb01318687
6 unchanged chunks
Time: 6253ms
ERROR in The target entry-point "@fullcalendar/angular" has missing dependencies:
- @fullcalendar/core/types/input-types
- @fullcalendar/core/datelib/env
- @fullcalendar/core/datelib/duration
- @fullcalendar/core/datelib/formatting
- @fullcalendar/core/datelib/date-range
- @fullcalendar/core/datelib/locale
- @fullcalendar/core/validation
- @fullcalendar/core/structs/event-source
i 「wdm」: Failed to compile.
ng --version 的结果如下:
Angular CLI: 9.1.3
Node: 10.16.3
OS: win32 x64
Angular: 9.1.3
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.901.3
@angular-devkit/build-angular 0.803.25
@angular-devkit/build-optimizer 0.803.25
@angular-devkit/build-webpack 0.803.25
@angular-devkit/core 9.1.3
@angular-devkit/schematics 9.1.3
@ngtools/webpack 8.3.25
@schematics/angular 9.1.3
@schematics/update 0.901.3
rxjs 6.5.3
typescript 3.8.3
webpack 4.39.2
如果删除之前创建的节点模块文件夹后,系统 运行 和 npm 安装中的包锁和包 JSON 相同
目标入口点“@fullcalendar/angular”中的错误缺少依赖项:
- @fullcalendar/core/types/input-types
- @fullcalendar/core/datelib/env
- @fullcalendar/core/datelib/duration
- @fullcalendar/core/datelib/formatting
- @fullcalendar/core/datelib/date-range
- @fullcalendar/core/datelib/locale
- @fullcalendar/core/validation
- @fullcalendar/core/structs/event-source
完整的日历遗漏了一些依赖项。 Cannot GET / 依赖编译出错会显示
我们有一个 angular 项目,到目前为止只有一名开发人员参与其中。 最近,一个新的开发人员加入了团队,现在两个开发人员应该在同一个项目上工作。 首先,我们在新计算机上 运行ning 项目时遇到问题,在这里我需要一些帮助以了解问题所在。 无论如何,我很想在 angular 项目中获得一些团队合作的技巧,例如,安排源代码管理(我们使用 svn,而不是 git),angular 升级策略。以及任何其他有用的提示。
我们在新电脑上遇到的问题如下:
Cannot GET /
ng
在浏览器控制台中我收到以下错误:
Failed to load resource: the server responded with a status of 404 (Not Found)
我 运行 命令 ng serve -o 在我的项目的根目录。
下面是ng serve -o
的编译输出0% compiling
Compiling @angular/core : es2015 as esm2015
10% building 3/3 modules 0 activei 「wds」: Project is running at http://localhost:4200/webpack-dev-server/
i 「wds」: webpack output is served from /
i 「wds」: 404s will fallback to //index.html
chunk {main} main.js, main.js.map (main) 2.01 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 154 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 7.53 MB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 2.27 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 340 kB [initial] [rendered]
Date: 2020-04-26T17:21:45.905Z - Hash: 642489da10cb01318687 - Time: 73590ms
ERROR in The target entry-point "@fullcalendar/angular" has missing dependencies:
- @fullcalendar/core/types/input-types
- @fullcalendar/core/datelib/env
- @fullcalendar/core/datelib/duration
- @fullcalendar/core/datelib/formatting
- @fullcalendar/core/datelib/date-range
- @fullcalendar/core/datelib/locale
- @fullcalendar/core/validation
- @fullcalendar/core/structs/event-source
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
i 「wdm」: Failed to compile.
i 「wdm」: Compiling...
i 「wdm」: wait until bundle finished: /
Date: 2020-04-26T17:21:54.537Z - Hash: 642489da10cb01318687
6 unchanged chunks
Time: 6253ms
ERROR in The target entry-point "@fullcalendar/angular" has missing dependencies:
- @fullcalendar/core/types/input-types
- @fullcalendar/core/datelib/env
- @fullcalendar/core/datelib/duration
- @fullcalendar/core/datelib/formatting
- @fullcalendar/core/datelib/date-range
- @fullcalendar/core/datelib/locale
- @fullcalendar/core/validation
- @fullcalendar/core/structs/event-source
i 「wdm」: Failed to compile.
ng --version 的结果如下:
Angular CLI: 9.1.3
Node: 10.16.3
OS: win32 x64
Angular: 9.1.3
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.901.3
@angular-devkit/build-angular 0.803.25
@angular-devkit/build-optimizer 0.803.25
@angular-devkit/build-webpack 0.803.25
@angular-devkit/core 9.1.3
@angular-devkit/schematics 9.1.3
@ngtools/webpack 8.3.25
@schematics/angular 9.1.3
@schematics/update 0.901.3
rxjs 6.5.3
typescript 3.8.3
webpack 4.39.2
如果删除之前创建的节点模块文件夹后,系统 运行 和 npm 安装中的包锁和包 JSON 相同
目标入口点“@fullcalendar/angular”中的错误缺少依赖项: - @fullcalendar/core/types/input-types - @fullcalendar/core/datelib/env - @fullcalendar/core/datelib/duration - @fullcalendar/core/datelib/formatting - @fullcalendar/core/datelib/date-range - @fullcalendar/core/datelib/locale - @fullcalendar/core/validation - @fullcalendar/core/structs/event-source
完整的日历遗漏了一些依赖项。 Cannot GET / 依赖编译出错会显示