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

cant build app with --prod flag. #17

Open
Ramachandrajoshi opened this issue Jul 14, 2018 · 5 comments
Open

cant build app with --prod flag. #17

Ramachandrajoshi opened this issue Jul 14, 2018 · 5 comments

Comments

@Ramachandrajoshi
Copy link

screen shot 2018-07-14 at 5 43 22 pm
getting this error while building the app with --prod flag.
Please solve this error.
pinch zoom is not stable.
initially half image will show at the bottom of that page.

@phikani
Copy link

phikani commented Aug 9, 2018

Hi,

I'm having the same problem.
In the GIT repo it is said to be fixed, nevertheless I am not able to build my Ionic app for production.
Tried different things but could not find a solution.

@leonardosalles Do you have an idea how to solve this? Your help would really be appreciated. I really like the plugin and it is very important for my application.

@Ramachandrajoshi Did you manage to find a solution for the problem?

Thanks a lot in advance!

@Ramachandrajoshi
Copy link
Author

No. Still facing same issue.

@leonardosalles
Copy link
Owner

You guys are facing the same issue in Example app? if yes, need to check angular-cli version and ionic-app-scripts version, my suggestion is to update all these dependencies to the latest version.

@Ivan-Perez
Copy link

I also have this issue. I have updated both angular-cli and ionic-app-scripts to their latest versions and compilation fails:

$ ionic cordova build android --prod --release
Running app-scripts build: --prod --platform android --target cordova
[15:10:29]  build prod started ...
[15:10:29]  clean started ...
[15:10:29]  clean finished in 10 ms
[15:10:29]  copy started ...
[15:10:29]  deeplinks started ...
[15:10:29]  deeplinks finished in 46 ms
[15:10:29]  ngc started ...
[15:10:35]  typescript error
            ionic2-zoom-area\dist\zoom-area.module.ts(6,2): Error during template compile of 'ZoomAreaModule' Function
            expressions are not supported in decorators in 'NgModule' 'NgModule' contains the error at
            @angular\core\core.ts(194,31) Consider changing the function expression into an exported function.

Error: The Angular AoT build failed. See the issues above
    at ...\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:237:55
    at step (...\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:32:23)
    at Object.next (...\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:13:53)
    at fulfilled (...\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:4:58)
    at <anonymous>
[15:10:36]  copy finished in 6.51 s

@phikani
Copy link

phikani commented Aug 14, 2018

I also tried with updating the cli and ionic-app-scripts, but I am still facing the same issue. I receive exactly the same message as you do, @Ivan-Perez . This is really problematic as the loading time for compiling the app without --prod flag is much higher...

@Ivan-Perez , I opened another issue a few days ago because the control buttons change their state of being visible or invisible whenever I somehow interact with the image (SVG) in my page... I use the zoom area in combination with a SVG image on which I add markers... Whenever I add a marker to the image, the controls disappear if they were shown and the other way round... Any suggestions for this maybe? Do you experience the same?

Thanks a lot and kind regards

Philipp

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

4 participants