Open Betalos opened 5 years ago
what's your development environment
@myliang, well i am in angular-cli@8.2.0 project but the issue comes up in prod building phase with the optimisation of webpac's terser plugin.
@myliang, I think the error here is there "," that should be removed in "./src/core/cell_range.js" line 92 :
union(other) {
const {
sri, sci, eri, eci,
} = this;
return new CellRange(
other.sri < sri ? other.sri : sri,
other.sci < sci ? other.sci : sci,
other.eri > eri ? other.eri : eri,
other.eci > eci ? other.eci : eci, // <-- need to be removed
);
}
add file .eslintignore to project
node_modules
Hello @myliang
I am also having the same issue with Angular build. Adding the .eslintignore file to the project and adding node_modules inside it did not help.
Is there any way to get rid of those extra comma(,)?
@Betalos how did you tackle this issue?
@rabi-iwa hi, set optimization
to false in angular.json can be solved.
@deepthan , Thanks for the update, it worked Although I believe resolving the above issue would definitely help a lot of people facing similar situation which is addressed by @Betalos
Hi, well after trying to build the project, terser plugin would trow this error:
Unexpected token: punc ()) [./node_modules/x-data-spreadsheet/src/core/cell_range.js:93,0