Answer the question
In order to leave comments, you need to log in
Why does it issue an Unexpected Token?
Good afternoon. I am developing an android application on Ionic. Faced such problem that I get Runtime Error(Unexpected Token)
Application on Ionic is written on Typescript. But the problem is that if you run the application in the browser, then everything works, but if you run it on android, which I do, then this error occurs.
The problem is that the line number is not written. But I figured out what is causing the error.
The code of the method I am calling
transformToTriangle() {
let config = {
EDGE_DETECT_VALUE:80,
POINT_RATE:0.075,
POINT_MAX_NUM:3500,
BLUR_SIZE:2,
EDGE_SIZE:8,
PIXEL_LIMIT: 350000
}
let updatedPhoto = new LowPoly(this.base64Image, config).init().then((data) => {
this.base64Image = data; // Фотография заменяется новой, отредактированной
});
}
transformToTriangle()
, then everything works on the phone (the photo, of course, is not edited, there is no method, but at least this error does not come out). new LowPoly(this.base64Image,config)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question