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.

get error: TypeError: Cannot read property 'Item' of undefined

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
warmhugcommented, Dec 20, 2017

Please delete the code above. And gzip your project, upload it here.

0reactions
ant-design-botcommented, Jan 5, 2018

Hello @gzlinjialong. Please provide a re-producible demo: https://codepen.io/pen?template=LWpaKe&editors=0010

Read more comments on GitHub >

github_iconTop 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 >

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