get error: TypeError: Cannot read property 'Item' of undefined
See original GitHub issueI do not use the label, but use typescript change to es5 instead.
When I Use the follow code: ` import List from ‘antd-mobile/lib/list’;
import ‘antd-mobile/lib/list/style/css’;
<List>… <List.Item>…</List.Item> </List> ` webpack build is not error. but when run, get the error: get error: TypeError: Cannot read property ‘Item’ of undefined
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError : Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an...
Read more >React : TypeError: Cannot read property 'Item' of undefined
As another answer mentioned, it looks like you are trying to use this.state.Item before the assignment expression this.state={.
Read more >How to Prevent the Error: Cannot Read Property '0' of Undefined
A guide on how to prevent the error "cannot Read Property '0' of Undefined", covering techniques such as try, catch, using const over...
Read more >Uncaught TypeError : Cannot read properties of undefined
The root cause of the error is that the declared variable doesn't have any value, so by default, JavaScript treats all variables as...
Read more >[Solved] Cannot read Properties of Undefined in JavaScript
The "Cannot read properties of undefined" error occurs when you try to access a property or a method on a variable that stores...
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
Please delete the code above. And gzip your project, upload it here.
Hello @gzlinjialong. Please provide a re-producible demo: https://codepen.io/pen?template=LWpaKe&editors=0010