Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails in Angular5: index.ts missing from Typescript compilation #3

Open
lehtiniemi opened this issue Mar 13, 2018 · 1 comment

Comments

@lehtiniemi
Copy link

When I try to compile a project with this module in Angular5, the build fails with the following error:

ERROR in ./node_modules/ng2-component-spinner/index.ts
Module build failed: Error: .\node_modules\ng2-component-spinner\index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (.\node_modules@angular\cli\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:674:23)
at plugin.done.then (.\nordic-sounds\node_modules@angular\cli\node_modules@ngtools\webpack\src\loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:160:7)

It works well when using ng serve, though, this is only in build.

@shayts
Copy link

shayts commented Mar 19, 2018

I have the same problem.

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

No branches or pull requests

2 participants