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.

Doesnt load the table: Uncaught TypeError: Cannot convert object to primitive value

See original GitHub issue

Hi all,

I haven’t been able to load any kind of bootstrap-table code. Not even the examples on the website. I keep getting the same javascript error:

bootstrap-table.min.js:10 Uncaught TypeError: Cannot convert object to primitive value
    at Object.setFieldIndex (bootstrap-table.min.js:10)
    at e.value (bootstrap-table.min.js:10)
    at e.value (bootstrap-table.min.js:10)
    at new e (bootstrap-table.min.js:10)
    at HTMLTableElement.<anonymous> (bootstrap-table.min.js:10)
    at Function.each (jquery.min.js:2)
    at w.fn.init.each (jquery.min.js:2)
    at w.fn.init.t.fn.bootstrapTable (bootstrap-table.min.js:10)

My dependencies are correct; the jquery and the bootstrap library load well in the browser from the CDNs(otherwise it wouldnt recognize them here).
Im using version 1.15 I am using W10, and Chrome 76.0.3809.100 .

Please, any help would be appreciated

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
StanislavNemytovcommented, Apr 12, 2020

I have the same problem and I think the right solution for it will be to take jquery@3.4.1 like it’s stated in bootstrap 4.4 documentation.

1reaction
hugoebarbozacommented, Apr 12, 2020

thanks a lot @StanislavNemytov, I had jquery 3.50…I lost many hours try to fix my issue…I take jquery@3.4.1 and it’s works

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot convert object to primitive value - Stack Overflow
causes this error because + "" basically means the same as calling the method toString() of the value to which you try to...
Read more >
Cannot convert object to primitive value with imported json
I'm trying to dynamically build a vuetify component in a nuxt project (Using different text values with vuetify component) by importing and iterating...
Read more >
Object to primitive conversion - The Modern JavaScript Tutorial
So, when the conversion looks for a toString function in obj , if it doesn't find it there then it keeps looking for...
Read more >
typeerror: cannot convert object to primitive value - You.com
Open side panel. Uploading an image into node.js server and using sql and i get this error: TypeError: Cannot convert object to primitive...
Read more >
cannot convert object to primitive value node js json
Doesnt load the table: Uncaught TypeError: Cannot convert object to primitive value 2 participants Add this suggestion to a batch that can be...
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