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.

Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Unable to resolve module `react-native/Libraries/StyleSheet/normalizeColor` from `/Volumes/WORK/react-native-app/node_modules/antd-mobile-rn/lib/segmented-control/segmented.android.js`: Module `react-native/Libraries/StyleSheet/normalizeColor` does not exist in the Haste module map

See original GitHub issue

Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Unable to resolve module react-native/Libraries/StyleSheet/normalizeColor from /Volumes/WORK/react-native-app/node_modules/antd-mobile-rn/lib/segmented-control/segmented.android.js: Module react-native/Libraries/StyleSheet/normalizeColor does not exist in the Haste module map

RN 56 ANTUI 2.20版本 react 16.4.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
zhangchennacommented, Jul 17, 2018

The problem has been fixed

0reactions
DavidNorenacommented, Jul 16, 2018

Update:

A better workaround for now: (Thanks to @CodingPapi):

  • Add normalize-css-color package dependency:

    $ yarn add normalize-css-color -D

  • Place this patch at the root directory of your project.

  • Add a postinstall script in your package.json, so the file will get patched everytime you install something:

  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "postinstall": "patch -p0 < segmented.android.js.patch"
  },

Note: You should change the patch command if you are working on windows.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bundling failed: Error: Unable to resolve module `_ ... - GitHub
i tried to do all these step and nothing worked Clear watchman watches: watchman watch-del-all. Delete the node_modules folder: rm -rf node_modules &&...
Read more >
React Native error 'Unable to resolve module `react-native` '
I am going the react-native CLI command route and not the create-react-native-app route. I have Android Studio 3.1.3 (updated last night), Node ...
Read more >
Error: Unable to resolve module `util` – Split Help Center
Running bundle using React Native and Javascript SDK causes an error. Bundling failed: Error: Unable to resolve module `util`.
Read more >
unable to resolve "firebase" from "app.js" - You.com
error : bundling failed: Error: Unable to resolve module @react-native-firebase/app from /Users/primetimetran/Desktop/rnTodoList/App.js : Module ... Favicon for ...
Read more >
Error 500 displays on android studio simulator - Gradle Forums
This is what the android device when i run the project. ... does not exist in the Haste module map\n\nThis might be related...
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