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 mapPropsToStyleNames

See original GitHub issue

react-native, react and native-base version

    "native-base": "2.4.5",
    "react": "16.4.0",
    "react-native": "0.55.4",

Expected behaviour

No errors

Actual behaviour

Unable to resolve ../utils/mapPropsToStyleNames" from ".//node_modules/native-base/dist/src/basic/View.js`: The module `../utils/mapPropsToStyleNames` could not be found"

Steps to reproduce (code snippet or screenshot)

screen shot 2018-06-02 at 12 31 36 pm

Screenshot of emulator/device

Is the bug present in both ios and android or in any one of them?

Using iOS simulator. I haven’t tried Android, but I would assume it happens there too.

Any other additional info which would help us debug the issue quicker.

Just booting the project from yarn start and I get this. Running on MacOS 10.13.4

Issue Analytics

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

github_iconTop GitHub Comments

8reactions
PMExtracommented, Jul 6, 2018

I found a folder that named Utils in the node_modules/native-base/dist/src instead utils (they are different of letter case)

7reactions
kodayashicommented, Jun 6, 2018

I’m hitting the same issue. Upgraded from 2.4.2 to 2.4.5 and I have “Utils” not “utils” in my path, so getting same error:

The module `../utils/mapPropsToStyleNames` could not be found

Filesystem has:

./node_modules/native-base/dist/src/Utils/mapPropsToStyleNames.js
./node_modules/native-base/dist/src/Utils/mapPropsToStyleNames.js.map
./node_modules/native-base/src/Utils/mapPropsToStyleNames.js

I had to yarn remove native-base then yarn add native-base to get the proper file structure (utils). I think the upgrade from 2.4.2 to 2.4.5 just didn’t rename the folder properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module by using native-base - Stack Overflow
I think you have forgot to install the native-base component first, if not then use the following command inside your project
Read more >
React Native 0.55.2->0.56.0にアップグレードした作業ログ
Unable to resolve module `../utils/mapPropsToStyleNames` from `/Users/username/project/packages/main/node_modules/native-base/dist/src/basic/ ...
Read more >
DevLifeMatter GeekyAnts.NativeBase
NativeBase Header title never align to center · ✓ NativeBase Unable to resolve mapPropsToStyleNames · ✓ NativeBase Deckswiper doesn't show up on android ......
Read more >
[Solved] NativeBase Header title never align to center
NativeBase Unable to resolve mapPropsToStyleNames. I found a folder that named Utils in the node_modules/native-base/dist/src instead utils (they are d.
Read more >
[RESOLVED] Unable to resolve module
Hi All. I was looking for a "get location and display on map" component and found one. Link to the post in the...
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