Skip to content

node_modules\ngx-http-rest\index.ts is not part of the compilation output. Please check the other error messages for details. #8406

@thatisuday

Description

@thatisuday

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Angular CLI: 1.5.0
Node: 7.10.0
OS: win32 x64
Angular: 5.0.0

@angular/cli: 1.5.0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.1
typescript: 2.4.2
webpack: 3.8.1

Repro steps.

  1. npm install ngx-http-rest
  2. add import { HttpRestModule } from 'ngx-http-rest'; to module.ts
  3. import HttpRestModule in imports section of module class

The log given by the failure.

ERROR in ./node_modules/ngx-http-rest/index.ts
Module build failed: Error: C:\Users\Uday\git-repos\thatisuday.github.io\ngx-ig-demo\node_modules\ngx-http-rest\index.ts is not part of the compilation outp
ut. Please check the other error messages for details.
    at AngularCompilerPlugin.getCompiledFile (C:\Users\Uday\git-repos\thatisuday.github.io\ngx-ig-demo\node_modules\@ngtools\webpack\src\angular_compiler_pl
ugin.js:629:23)
    at plugin.done.then (C:\Users\Uday\git-repos\thatisuday.github.io\ngx-ig-demo\node_modules\@ngtools\webpack\src\loader.js:467:39)
    at process._tickCallback (internal/process/next_tick.js:109:7)
 @ ./src/app/app.module.ts 11:0-47
 @ ./src/main.ts
 @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts

Desired functionality.

Normally, angular app should compile.

Mention any other details that might be useful.

This is problem doesn't occur with ngx-http-rest package but all packages made for Angular 4. For example, ngx-image-gallery package made by me have exact same problem.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions