SamirHodzic / ngx-embed-video

Get embed code for embedding youtube/vimeo/dailymotion/* video in websites from URL or ID in Angular 6+.
MIT License
56 stars 41 forks source link

Missing index.ts #17

Closed oldschoolbg closed 5 years ago

oldschoolbg commented 5 years ago

versions:

node - 10.13.0 npm - 6.4.1 angular - 6.1.8 ngx-embed-video ^1.0.2

When trying to build my project which includes the ngx-embed-video I get the following error:

"ERROR in ./node_modules/ngx-embed-video/src/embed-video.service.ts Module build failed: Error: C:_code...\node_modules\ngx-embed-video\src\embed-video.service.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)."

This is strange as I can see it in the node_modules ...

oldschoolbg commented 5 years ago

Googling led me to this thread...

https://github.com/angular/angular-cli/issues/8284

oldschoolbg commented 5 years ago

I have resolved this locally by using the advice in the above thread, and specifically this comment:

https://github.com/angular/angular-cli/issues/8284#issuecomment-371720306

Just in case someone else experiences this...