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.

Unable to resolve module `react-native/Libraries/StyleSheet/StyleSheetPropType

See original GitHub issue

Environment

Please provide the following information about your environment: ArchLinux kernel 4.19.23-1-lts Samsung Galaxy S9 Android 8.0.0

"react-native": "^0.58.5",
   "react-viro": "2.13.0"

Description

Following the get started tutorial from on step 7 got the error that i show you on the image.

viroerror

To reproduce you just have to follow the get started tutorial. It’s not working for me. Tried to solve the problem with the terminal output but didn’t work.

Thank you.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
maxence-machucommented, Feb 28, 2019

Same issue for us

react-native : 0.58.5 react-viro : 2.13.0

I temporary resolved this issue commenting the following code + each PropTypes declaration in the following components

  • node_modules/react-viro/components/ViroParticleEmitter.js
  • node_modules/react-viro/components/ViroImage.js
  • node_modules/react-viro/components/ViroAnimatedImage.js
  • node_modules/react-viro/components/ViroFlexView.js
  • node_modules/react-viro/components/ViroSurface.js
  • node_modules/react-viro/components/ViroButton.js
  • … (CTRL + F and search ‘stylePropType’ for to find these components)

var StyleSheetPropType = require('react-native/Libraries/StyleSheet/StyleSheetPropType') var stylePropType = StyleSheetPropType(ViroPropTypes)

This is a workaround, consider downgrading react-native, 0.57.8 is fine

1reaction
VikAdvanicommented, Apr 5, 2019

Hi @kaliatech, we are launching a new release shortly which will formally support React 0.59.

Read more comments on GitHub >

github_iconTop Results From Across the Web

0.62.1. error: Error: Unable to resolve module `react-native/ ...
Build completes but application fails to start with the error: error: Error: Unable to resolve module react-native/Libraries/vendor/core/isEmpty from ...
Read more >
Unable to resolve module 'react-navigation'
This error means that either you haven't installed the react-navigation module or that you have installed the module but didn't re-built ...
Read more >
MongoDB Atlas App Services & Realm
Fresh Setup: Realm React Native Error: Unable to resolve module `./subscription` from `node_modules/realm/lib/browser/index.js`.
Read more >
React Native, Typescript and VS Code: Unable to resolve ...
The problem with resolving modules turned out to be related to VS Code's typescript project helper.
Read more >
Running bundle using React Native and Javascript SDK ...
Running bundle using React Native and Javascript SDK causes an error. Bundling failed: Error: Unable to resolve module `util`.
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