Unexpected token when run on real device

i have been developing an app for the last month and do the testing on the browser and on the android simulator and it works great,
i decided to deploy it on real device and on ionic view, i get white page, i ran the debugging command the error is the following

Runtime Error
Unexpected token =

SyntaxError: Unexpected token =

Ionic Framework: 3.5.0
Ionic native: 2.9.0^
Angular Core: 4.1.3

i searched online but most of the posts are old and irrelevant, i will be glad if i can get help

Could you post a screenshot of the error?

Did you remote debug the problem on the device already?
Follow these instructions here to debug the problem in Safari dev tools: https://ionic.zone/debug/remote-debug-your-app#ios
Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android
Look at the console and network tabs for errors.

The lines that causes this problem :

when compile on the web it compiles normally, why it falls when produce on real devices ?

What does this code look like in your .ts?

i replaced it with normal funcs instead of lampada and it works

So the question why it breaks on the previous line

1 Like

Yeah, I don’t even understand that simplified version - so I am out :stuck_out_tongue: