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

ERROR in Error during template compile of 'IonicAudioModule' #216

Open
StefaniToto opened this issue Dec 13, 2020 · 0 comments
Open

ERROR in Error during template compile of 'IonicAudioModule' #216

StefaniToto opened this issue Dec 13, 2020 · 0 comments

Comments

@StefaniToto
Copy link

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';

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

1 participant