import {observable} from "mobx";
class OrderLine {
@observable price = 0;
@observable amount = 1;
constructor(price) {
this.price = price;
}
@computed get total() {
return this.price * this.amount;
}
}
When sonar-scanner run, It report an Error:
ERROR: Unable to parse file: /data/app/dropdown.js
It report that could not parse line:
@observable price = 0;. Synxtax is Invalid.
Anyone help me?