Closed
Description
From @cexbrayat on November 24, 2017 22:59
Bug Report or Feature Request (mark with an x
)
- [ ] bug report -> please search issues before submitting
- [x] feature request
Area
- [ ] devkit
- [x] schematics
Versions
Angular CLI: 1.6.0-rc.0
Node: 8.9.1
OS: darwin x64
Angular: 5.0.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.6.0-rc.0
@angular/platform-server: error
@angular-devkit/build-optimizer: 0.0.33
@angular-devkit/core: 0.0.21
@angular-devkit/schematics: 0.0.37
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.0-rc.0
@schematics/angular: 0.1.7
typescript: 2.4.2
Desired functionality
An up-to-date Angular 5 will not have @angular/http
as a dependency as it is now deprecated in favor of @angular/common/http
, and @angular/platform-server
requires it.
(as discussed in #276 it should even be removed from the default schematics)
The universal schematics should do the extra mile and check if the dependency is in the package.json
and add it if necessary, as it does for @angular/platform-server
.
Copied from original issue: angular/devkit#296