Closed napcat closed 7 years ago
Did you solved the above issue?
Hello!
No the problem is still there... can't build with my current dependencies.
Build scripts 1.3.7, ionic 3.0 and angular 4.
@napcat I see this error now after upgrading to Angular 4.1.2. Creating a module for Ionic and Angular is hard work because of the maintenance. Every release breaks something. I have changed the module quite a few times already to fix AOT related errors. I searched briefly and couldn't find any documentation related to that build error. Maybe someone can shed some light.
I did some investigation, and I believe I found the fix, see pull request https://github.com/arielfaur/ionic-audio/pull/127.
Can that be merged in 3.0 version and we get an updated version?
@napcat can you check node_modules/ionic-audio/
contain node_modules
directory, if exists then delete that and build with --prod flag.
Every time you install package there will be node_modules in ionic-audio folder so you have to remove it until @arielfaur fixed that, @arielfaur you can fix that by moving dependencies to devDependencies https://github.com/arielfaur/ionic-audio/pull/102/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R14 my last PR contains the fixes of this issue
@sfaizanh I have been pulling my hair trying to make AOT work. It simply does not compile with -prod
.
I have already moved dependencies to devDependencies as you suggested. Could you please take a look at the code I pushed to the 3.0
branch? I may have overlooked something. The code compiles and works fine with a normal build. Try to run a npm run build --prod
inside the demo
project folder. You obviously need to npm install
first 😄
You will see the demo project has a reference to ionic-audio in the parent folder for development purposes. Thanks!
Sure I'll look into it, give me hour or two
Sent from my iPhone
On Jun 7, 2017, at 23:19, arielfaur notifications@github.com wrote:
127
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
When trying to build in production mode passing the flag --prod the build gets an error.
Does the component needs to update it's dependencies?
How can I fix this error?