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 : ionc build ios or android, uglifyjs failed: SyntaxError: Unexpected token: operator (>) #8817
Comments
Hello, thanks for opening an issue with us! uglifyJS does support arrow functions. Are you using the correct syntax for arrow functions? |
@jgw96 it happens the same for me with It seems uglifyJS has es6 support but in another branch Is it the case? If not, how to make this works with ionic 2. Updated: I solved the problem now. As @jgw96 said that uglifyJS already supports es6, I just changed |
@haxpor can you display you resolve function detail |
@jgw96 i confirm i use correct arrow function |
@tianleios On your root project directory, edit Then after that execute |
@haxpor , the 'harmony' solution is working, thank you! |
This issue was moved to ionic-team/ionic-app-scripts#239 |
Hello, thanks for using Ionic! Since this is a build issue i have moved this issue to the app-scripts repo. |
when i run ionic build ios. will display fllow errror,uglifyjs cannot support es6 feature arrow function
] ngc finished in 32.81 s
[19:52:49] bundle started ...
[19:53:01] bundle finished in 12.33 s
[19:53:01] uglifyjs started ...
[19:53:01] sass started ...
[19:53:02] uglifyjs failed: SyntaxError: Unexpected token: operator (>)
[19:53:02] ionic-app-script task: "build"
[19:53:02] Error: SyntaxError: Unexpected token: operator (>)
The text was updated successfully, but these errors were encountered: