Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Typescript compilation fails when building an angular app with a linked module #612

@lini

Description

@lini

Issue Checklist

  • You are submitting: a bug report.
  • You verified that this is a real problem by searching the [NativeScript Forum] and the other [issues] in this repo.
  • You checked our [demo apps] and the [documentation] for sample usage.

Tell us about the problem

When building an app with a linked plugin source, TS compilation fails with:

ERROR in C:/nativescript-fresco/src/nativescript-fresco.ts
Module build failed: Error: C:\nativescript-fresco\src\nativescript-fresco.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
    at AngularCompilerPlugin.getCompiledFile (C:\nativescript-fresco\demo-angular\node_modules\@ngtools\webpack\src\packages\ngtools\webpack\src\angular_compiler_plugin.ts:951:15)
    at plugin.done.then (C:\nativescript-fresco\demo-angular\node_modules\@ngtools\webpack\src\packages\ngtools\webpack\src\loader.ts:49:29)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
 @ C:/nativescript-fresco/src/angular/nativescript-fresco.module.ts 16:53-67
 @ C:/nativescript-fresco/src/angular/index.ts
 @ ./app.module.ts
 @ ./main.ts
Webpack compilation complete.
Executing webpack failed with exit code 2.

Local environment

  • Platform Windows
  • Node version v8.9.1 NPM version 6.1.0
  • NativeScript CLI version 4.1.1
  • nativescript-dev-webpack 0.14.4

Project data

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions