Skip to content
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

Closed
9 tasks done
lini opened this issue Jul 16, 2018 · 1 comment
Closed
9 tasks done

Comments

@lini
Copy link

lini commented Jul 16, 2018

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

lini added a commit to NativeScript/nativescript-fresco that referenced this issue Jul 16, 2018
@NickIliev NickIliev added the bug label Jul 30, 2018
@sis0k0 sis0k0 added backlog and removed backlog labels Aug 21, 2018
@elena-p elena-p changed the title Typescript compilation fails when building an app with a linked module Typescript compilation fails when building an angular app with a linked module Jan 18, 2019
@elena-p
Copy link
Contributor

elena-p commented Jan 18, 2019

The issue also happens on macOS.
https://github.com/NativeScript/nativescript-camera/tree/master/demo-angular
adding "../src" or "../src/**/*" in the 'include' property of the tsconfig file doesn't help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants