TypeError: Cannot read property 'Component' of undefined
See original GitHub issueI’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:
- Created 7 years ago
- Comments:9 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
<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@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.jsimport 'react-bootstrap-table';
and error is gone