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 properties of undefined (reading 'style')

See original GitHub issue

Description

I am having this error TypeError: Cannot read properties of undefined (reading ‘style’)

Version

0.64.3

Output of react-native info

./node_modules/react-native-elements/src/config/ViewPropTypes.js:3:22 "export ‘ViewPropTypes’ (imported as ‘RNViewPropTypes’) was not found in ‘react-native-web/dist/index’ 1 | import { View, ViewPropTypes as RNViewPropTypes } from ‘react-native’; 2 |

3 | const ViewPropTypes = RNViewPropTypes || View.propTypes; | ^ 4 | 5 | export default ViewPropTypes; 6 | ./node_modules/react-native-ratings/src/SwipeRating.js:332:9 "export ‘ViewPropTypes’ was not found in ‘react-native-web/dist/index’ 330 | onFinishRating: PropTypes.func, 331 | showRating: PropTypes.bool, 332 | style: ViewPropTypes.style, | ^ 333 | readonly: PropTypes.bool, 334 | startingValue: PropTypes.number, 335 | fractions: fractionsType,

Steps to reproduce

Run Npm i and then npm start of this repo

Snack, code example, screenshot, or link to a repository

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13

github_iconTop GitHub Comments

7reactions
Muhammad-Bilal-7896commented, Dec 18, 2021

Problem solved

3reactions
Sbonelo01commented, Jan 30, 2022

@Muhammad-Bilal-7896 , I have solved the problem. I had to remove Typography.

Thanks for your time

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property 'style' of undefined ...
The getElementByClassName implies that the selector's name is a class, so you don't need the dot in front of it. Same as you...
Read more >
Cannot read property 'style' of Undefined in JavaScript
To solve the "Cannot read property 'style' of undefined" error, make sure that the JS script tag is placed at the bottom of...
Read more >
How To Fix Cannot Read Property 'style' of Null in JavaScript
This error boils down to one problem. The element you are trying to access does not exist in the DOM (document object model)...
Read more >
Uncaught TypeError: Cannot read properties of ... - DataTables
I want to dynamically change column visible based on a variable. For this I run the code after the ajax request is successful...
Read more >
TypeError: Cannot read property 'style' of undefined function ...
Getting the following error when changing a field value on a related list field: TypeError: Cannot read property 'style' of undefined function on ......
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