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 issueFailed 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:
- Created 5 years ago
- Comments:14 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem has been fixed
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:
Note: You should change the patch command if you are working on windows.