You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im using Ionic 5 and during buliding its coming an error:
ionic build --prod --verbose
ERROR in Error during template compile of 'IonicAudioModule'
Could not resolve ionic-angular relative to [object Object]..
[ERROR] An error occurred while running subprocess ng.
ng.cmd run app:build:production --verbose exited with exit code 1.
During ionic serve everything is working fine. No issues.
Im using Ionic 5 and during buliding its coming an error:
ionic build --prod --verbose
ERROR in Error during template compile of 'IonicAudioModule'
Could not resolve ionic-angular relative to [object Object]..
[ERROR] An error occurred while running subprocess ng.
ng.cmd run app:build:production --verbose exited with exit code 1.
During ionic serve everything is working fine. No issues.
My module.ts.
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
AudioPageRoutingModule,
IonicAudioModule.forRoot(defaultAudioProviderFactory),
],
declarations: [AudioPage ],
providers: [
{ provide: AudioProvider, useFactory: myCustomAudioProviderFactory }
]
})
export class AudioPageModule {}
export function myCustomAudioProviderFactory() {
return (window.hasOwnProperty('cordova')) ? new CordovaMediaProvider() : new WebAudioProvider();
}
Also at ionic-audio.module.js has made a change
import { IonicModule } from '@ionic/angular';
The text was updated successfully, but these errors were encountered: