Open vdias38 opened 5 years ago
Issue referenced on repo of pugin SamirHodzic/ngx-embed-video/issues/21 Can't achieve to compile project including plugin, then I've decided to copy EmbedVideoService (v1.0.2) on source code of our project. Should be fixed for Angular 6 with latest version of plugin.
main differences so far: on meumobi: index and module file. next- remove files to keep the same structure
it worked removing module
next step:
it worked with same package dependencies versions, only adding files
key on package.json
When I try with v1.0.4 of package it raises following error for prod
victors-MacBook-Pro-2:ion-employee victor$ npm run ionic:build:pwa --prod
> infomobi@1.0.0 preionic:build:pwa /Users/victor/Dvpt/PROJECTS/ion-employee
> gulp preprocess --mode=pwa
[04:07:07] Using gulpfile ~/Dvpt/PROJECTS/ion-employee/gulpfile.js
[04:07:07] Starting 'preprocess'...
[04:07:08] Finished 'preprocess' after 434 ms
> infomobi@1.0.0 ionic:build:pwa /Users/victor/Dvpt/PROJECTS/ion-employee
> ionic-app-scripts build && npm run ngsw-config && npm run ngsw-copy
[04:07:24] ionic-app-scripts 3.1.9
[04:07:24] build prod started ...
[04:07:24] clean started ...
[04:07:24] clean finished in 10 ms
[04:07:24] copy started ...
[04:07:27] deeplinks started ...
[04:07:27] deeplinks finished in 856 ms
[04:07:27] ngc started ...
[04:08:54] typescript error
Unexpected value 'EmbedVideo in
/Users/victor/Dvpt/PROJECTS/ion-employee/node_modules/ngx-embed-video/dist/index.js' imported by the module
'VideoDetailsPageModule in
/Users/victor/Dvpt/PROJECTS/ion-employee/src/pages/video-details/video-details.module.ts'. Please add a
@NgModule annotation.
[04:08:54] ionic-app-script task: "build"
[04:08:54] Error: The Angular AoT build failed. See the issues above
Error: The Angular AoT build failed. See the issues above
at /Users/victor/Dvpt/PROJECTS/ion-employee/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
at step (/Users/victor/Dvpt/PROJECTS/ion-employee/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
at Object.next (/Users/victor/Dvpt/PROJECTS/ion-employee/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
at fulfilled (/Users/victor/Dvpt/PROJECTS/ion-employee/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
at <anonymous>
npm ERR! code ELIFECYCLE
Hi,
I have used your api but I got below issue while building it
ERROR in ./node_modules/meumobi-ngx-embed-video/index.ts
Module build failed: Error: /Users/bhaumikdarji/Documents/Development/QuixSolution/php/InterimarketAppV2/webapp/node_modules/meumobi-ngx-embed-video/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 (/Users/bhaumikdarji/Documents/Development/QuixSolution/php/InterimarketAppV2/webapp/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:674:23)
at plugin.done.then (/Users/bhaumikdarji/Documents/Development/QuixSolution/php/InterimarketAppV2/webapp/node_modules/@ngtools/webpack/src/loader.js:467:39)
at
Expected behaviour
Tell us what should happen
Actual behaviour
Steps to reproduce
1. 2. 3.
Expected responses