after updating project to ng v6 I've got a problem with compilation
ERROR in ./node_modules/@angular-devkit/core/src/json/schema/registry.js
Module not found: Error: Can't resolve 'http' in 'C:\Users\Damian Roszyk\WebstormProjects\BizzLayerClient\node_modules\@angular-devkit\core\src\json\schema'
i 「wdm」: Failed to compile.
ng -v:
Angular CLI: 6.0.3
Node: 10.1.0 OS: win32 x64
Angular: 6.0.2
... animations, common, compiler, core, forms, http
... platform-browser, platform-browser-dynamic, platform-server
... router
@angular-devkit/architect 0.6.3
@angular-devkit/build-angular 0.6.3
@angular-devkit/build-optimizer 0.6.3
@angular-devkit/core 0.6.3
@angular-devkit/schematics 0.6.3
@angular/cli 6.0.3
@angular/compiler-cli 6.0.2
@ngtools/webpack 6.0.3
@schematics/angular 0.6.3
@schematics/update 0.6.3
rxjs 6.1.0
typescript 2.7.2
webpack 4.8.3
Does anyone encountered same problem and know how to solve it ?
HttpModule, it's been deprecated since v4 in favour ofHttpClientModule, and was removed in v6HttpClientModule. The problem is somewhere else.httpis a default package innode.js. Just for debugging purpose, Open node.js in terminal & typehttp.get. What you're getting ? any object?[Function: get]