question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: _RichText.value: Invalid arguments.

See original GitHub issue

Thanks for the greate package I have an error when reading excel file, And when I tried with another file such as const filePath = "../static/excel/demo.xlsx", I didn’t get any errors, is that xlsx-populate issue or my excel file’s issue ?

function insertData(dataObject) {
  const filePath = "../static/excel/demo.xlsx"
  XlsxPopulate.fromFileAsync(filePath)
    .then(workbook => {
      // handle logic here
      return workbook.toFileAsync(filePath);
    })
    .catch(error => {
      console.log('Error', error)
    })
}

Error:

Error Error: _RichText.value: Invalid arguments.
    at ArgHandler.handle (xxx/node_modules/xlsx-populate/lib/ArgHandler.js:50:15)
    at RichTextFragment.value (xxx/node_modules/xlsx-populate/lib/RichTextFragment.js:76:14)
    at new RichTextFragment (xxx/node_modules/xlsx-populate/lib/RichTextFragment.js:42:18)
    at new RichText (xxx/node_modules/xlsx-populate/lib/RichText.js:23:33)
    at Cell._parseNode (xxx/node_modules/xlsx-populate/lib/Cell.js:596:35)
    at Cell._init (xxx/node_modules/xlsx-populate/lib/Cell.js:541:18)
    at new Cell (xxx/node_modules/xlsx-populate/lib/Cell.js:24:14)
    at _node.children.forEach.cellNode (xxx/node_modules/xlsx-populate/lib/Row.js:352:26)
    at Array.forEach (<anonymous>)
    at Row._init (xxx/node_modules/xlsx-populate/lib/Row.js:351:29)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
LesterLyucommented, Aug 1, 2019

Keep in mind this library won’t generate phonetics for Kanji. Thus, whenever you modified a cell that contains phonetic nodes, the phonetic nodes will be removed.

1reaction
LesterLyucommented, Jul 31, 2019

I will take a look tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

overloaded method match has some invalid arguments
I suspect you want to split the rich text box content by lines, then pass this to the new form and show it....
Read more >
Invalid argument type (Text), Expecting a Record value instead
I am building a report catalog application and have repeatedly run into the error message "Invalid argument type (Text), Expecting a Record value...
Read more >
Invalid Smarty syntax - Post Affiliate Pro Support Portal
The error "Invalid Smarty syntax" should appear when editing templates. The reason why it appeared is that you used some special character ...
Read more >
An error in a rich text field - Nintex help documentation
Issue. You run a DocGen Package and see this message: HandleFillException (ResourceInvalid/??) · Cause. You could get this message if a rich text...
Read more >
Overcoming NetSuite SuiteScript 2.0 LongText RichText ...
Abstract: SuiteScript 2.0 > Suitelet > Sublist.addField(options) > SSS_INVALID_TYPE_ARG”,”message”:” You have entered an invalid type argument: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found