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

Ionic 4 version? #206

Open
bockoblur opened this issue Oct 28, 2018 · 10 comments
Open

Ionic 4 version? #206

bockoblur opened this issue Oct 28, 2018 · 10 comments

Comments

@bockoblur
Copy link

Hello.
I was able to run ionic-audio in my Ionic 4 project by simply changing one line (line 3) in ionic-audio.module.js:

Change:

import { IonicModule } from 'ionic-angular';

To:

import { IonicModule } from '@ionic/angular';

However, when I try to build production version with ionic build --prod, I get the following error:

ERROR in Error during template compile of 'IonicAudioModule'
  Could not resolve ionic-angular relative to D:/ionicprojects/TestProject/node_modules/ionic-audio/dist/ionic-audio.module.d.ts..

Is there a quick fix for this, or is a new version for Ionic 4 planned?
Thank you.

@wilfredonoyola
Copy link

I am having same problem, Do you know about a solution about this?

Thanks

@phyr0s
Copy link

phyr0s commented Jul 25, 2019

+1

1 similar comment
@ipehimanshu
Copy link

+1

@StefaniToto
Copy link

Have same issue on version 5.
Someone solved that issue ?

@ipehimanshu
Copy link

hello
is there any fix for ionic 5 or ionic 4 related ?

@StefaniToto
Copy link

Problem solved. There are 3 files that has to be changed the imports from

ionic-angular to @ionic/angular.

Please check inside the node-modules/ionic-audio ans change it manually. It will work.

@ipehimanshu
Copy link

ok, let me try and check,
Thanks in advance @Stefani0

@ipehimanshu
Copy link

@Stefani0
can you help me small like how i need to add on app.module now?
Like in ionic 3 we are adding like
http://prntscr.com/15chp4w

So in ionic 4 how it need to add?

@StefaniToto
Copy link

code is fine guess.
send me an email i will send a working code.
stefani.toto@gmail.com

@ipehimanshu
Copy link

@Stefani0
i have changed into one ionic-audio.module.js
http://prntscr.com/15dqarx
and then ionic build command working fine
but when i am trying --prod command then it give error like
http://prntscr.com/15dq0zw

Thanks

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

5 participants