Error: Unrecognized rich format <color/> #2503

Closed
opened 2022-01-24 12:32:11 +00:00 by mhmda-83 · 0 comments
mhmda-83 commented 2022-01-24 12:32:11 +00:00 (Migrated from github.com)
const workbook = xlsx.readFile(path.resolve(__dirname, "items.xlsx"), {
    WTF: true,
  });

produce this

(node:16510) UnhandledPromiseRejectionWarning: Error: Unrecognized rich format <color/>
    at parse_rpr (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:8876:50)
    at parse_r (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:8892:17)
    at Array.map (<anonymous>)
    at parse_rs (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:8897:44)
    at parse_si (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:8962:29)
    at parse_sst_xml (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:8981:12)
    at parse_sst (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:16367:9)
    at parse_zip (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:21592:26)
    at read_zip (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:21917:9)
    at readSync (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:21986:69)
(Use `node --trace-warnings ...` to show where the warning was created)```
```javascript const workbook = xlsx.readFile(path.resolve(__dirname, "items.xlsx"), { WTF: true, }); ``` produce this ``` (node:16510) UnhandledPromiseRejectionWarning: Error: Unrecognized rich format <color/> at parse_rpr (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:8876:50) at parse_r (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:8892:17) at Array.map (<anonymous>) at parse_rs (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:8897:44) at parse_si (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:8962:29) at parse_sst_xml (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:8981:12) at parse_sst (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:16367:9) at parse_zip (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:21592:26) at read_zip (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:21917:9) at readSync (/home/mamad/Documents/WorkSpaces/Paziresh24/insurance-proxy/node_modules/xlsx/xlsx.js:21986:69) (Use `node --trace-warnings ...` to show where the warning was created)```
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#2503
No description provided.