Ionic 3 uglifyjs Error: Unexpected token: name () in


#1

ionic cordova build android --prod --release

[14:55:06]  preprocess finished in 20.40 s
[14:55:06]  webpack started ...
[14:56:51]  webpack finished in 105.09 s
[14:56:51]  sass started ...
[14:56:51]  uglifyjs started ...
Error: Unexpected token: name (ProfileFacebookPageModuleInjector) in C:\Users\2bher\WebstormProjects\ionic3-angular4_2\www\build\0.main.js at line 46, col 6, pos 2589
    at BuildError.Error (native)
    at new BuildError (C:\Users\2bher\WebstormProjects\ionic3-angular4_2\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28)
    at taskReject (C:\Users\2bher\WebstormProjects\ionic3-angular4_2\node_modules\@ionic\app-scripts\dist\worker-process.js:36:22)
    at C:\Users\2bher\WebstormProjects\ionic3-angular4_2\node_modules\@ionic\app-scripts\dist\worker-process.js:14:13
    at process._tickCallback (internal/process/next_tick.js:109:7)
[14:56:55]  sass finished in 3.19 s
[14:56:55]  cleancss started ...
[14:56:57]  cleancss finished in 2.81 s

found this - https://github.com/ionic-team/ionic-app-scripts/issues/1027

looking for solution.


#2

@codiqa10004205 Did you find solution for this error?, if possible could you please share it::sweat: