You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type '{ header: true; skipEmptyLines: true; dynamicTyping: true; transform: (value: any) => void; complete: (result: PapaParseResult) => void; }' is not assignable to parameter of type 'PapaParseConfig'.
Object literal may only specify known properties, and 'transform' does not exist in type 'PapaParseConfig'.ts(2345)
code:
this.papa.parse(this.fileSelected, { header:true, skipEmptyLines:true, dynamicTyping:true, transform: function (value) { } , complete: (result) => { console.log("papa parse complete."); //to json done console.log('Parsed: ', result);//todo display html //csv json parsing errors (in case count is not the same) if(result.errors.length!=0) { result.errors.forEach(element => { console.log("Papaparse>>csv parsing error of type: "+element.type+" ,code: "+element.code+" ,row: "+element.row+" , message: "+ element.message); }); } else validate(result.data); } });
The text was updated successfully, but these errors were encountered:
Argument of type '{ header: true; skipEmptyLines: true; dynamicTyping: true; transform: (value: any) => void; complete: (result: PapaParseResult) => void; }' is not assignable to parameter of type 'PapaParseConfig'.
Object literal may only specify known properties, and 'transform' does not exist in type 'PapaParseConfig'.ts(2345)
code:
this.papa.parse(this.fileSelected, { header:true, skipEmptyLines:true, dynamicTyping:true, transform: function (value) { } , complete: (result) => { console.log("papa parse complete."); //to json done console.log('Parsed: ', result);//todo display html //csv json parsing errors (in case count is not the same) if(result.errors.length!=0) { result.errors.forEach(element => { console.log("Papaparse>>csv parsing error of type: "+element.type+" ,code: "+element.code+" ,row: "+element.row+" , message: "+ element.message); }); } else validate(result.data); } });
The text was updated successfully, but these errors were encountered: