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.

TypeError: Cannot read property 'Component' of undefined

See original GitHub issue

I’m getting this uncaught TypeError on first load of my app. Everything seems okay though just a error console message. Not sure what’s causing this.

Uncaught TypeError: Cannot read property 'Component' of undefined
    at Object.e.__esModule.default (react-bootstrap-table.min.js:8)
    at t (react-bootstrap-table.min.js:1)
    at Object.e.__esModule.default (react-bootstrap-table.min.js:9)
    at t (react-bootstrap-table.min.js:1)
    at Object.e.__esModule.default (react-bootstrap-table.min.js:7)
    at t (react-bootstrap-table.min.js:1)
    at Object.t.exports (react-bootstrap-table.min.js:1)
    at t (react-bootstrap-table.min.js:1)
    at e.__esModule.default (react-bootstrap-table.min.js:1)
    at react-bootstrap-table.min.js:1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ashishchoudhary12commented, Apr 18, 2017

<script type="text/javascript" src="https://unpkg.com/react-autosuggest/dist/standalone/autosuggest.js"></script> i comment the script file in my html and the error is gone

1reaction
andrewvmailcommented, Apr 5, 2017

@shainaveloz @Vl-Mikhail finally i got it to worked i use the script tag to include react-bootstrap-table and that was the cause of it

npm install react-bootstrap-table then I put this in my app.js import 'react-bootstrap-table';

and error is gone

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'Component' of undefined - Stack Overflow
A bit late to this, but this sounds like a typescript error. If anyone else comes across this change import React, {Component} from...
Read more >
TypeError: Cannot read property 'Component' of undefined ...
The mismatch between server and client rendered code is a result of the server rendering <img> element and the client the next error...
Read more >
How to Read React Errors (fix 'Cannot read property of ...
This error usually means you're trying to use .map on an array, but that array isn't defined yet. That's often because the array...
Read more >
TypeError: Cannot read property 'components' of undefined
When trying to import the mixin occurs the following problem Error in render: "TypeError: Cannot read property 'components' of undefined" But there is ......
Read more >
cannot read properties of undefined (reading 'component')
The problem is that as an Input variable, the reminders object is initially undefined until angular has finished initializing the component. See this...
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