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.

Case Sensitive Problem in webpack? Unable to resolve "./badge/badge"

See original GitHub issue

Hi there,

I am using react-native-elements pretty much only for some form fields, but I get this error while compiling:

Unable to resolve "./badge/badge" from "node_modules/react-native-elements/src/index.js"

I am not even using the badge anywhere in my project (unless expo does that by default), so I am quite surprised to see this message.

Could it be that this is an issue with case sensitivity? because the file /badge/Badge would be there…

I am using:

  • macOS 10.14.3
  • npm 6.8.0
  • node 10.15.0

Your Environment (please complete the following information):

software version
react-native-elements 1.0.0
react-native 32.0.0
npm 6.8.0

my packages to start with:

    "@expo/samples": "2.1.1",
    "axios": "^0.18.0",
    "babel-plugin-module-resolver": "^3.1.3",
    "eslint": "^4.19.1",
    "expo": "^32.0.0",
    "i18n-iso-countries": "^3.7.8",
    "immutable": "^3.8.2",
    "lodash": "^4.17.10",
    "moment": "^2.22.1",
    "normalizr": "^3.2.4",
    "onchange": "^4.0.0",
    "prettier": "^1.13.5",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
    "react-native-calendars": "^1.19.4",
    "react-native-communications": "^2.2.1",
    "react-native-elements": "^1.0.0",
    "react-native-immutable-list-view": "^0.7.2",
    "react-native-local-storage": "^1.5.2",
    "react-native-modal-datetime-picker": "^6.0.0",
    "react-native-render-html": "^3.10.0",
    "react-native-tab-view": "^1.0.2",
    "react-navigation": "2.0.0",
    "react-redux": "^5.0.7",
    "redux": "^3.0.0",
    "redux-logger": "^3.0.6",
    "redux-loop-symbol-ponyfill": "^2.2.2",
    "redux-promise": "^0.5.3",
    "redux-thunk": "^2.2.0"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
lucidlemoncommented, Mar 4, 2019

I have no idea what I did. but I opened my project again today without reinstalling npm modules or anything and it works… weird stuff.

0reactions
Mukeyiicommented, Feb 21, 2020

Same issue here. Using the latest RNE and tried reinstalling nodemodules, rne, deleted npm cache, reinstalled app etc., nothing helped. Any other suggestions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Case insensitivity causes builds to fail when run on ... - GitHub
The better solution could be when Webpack is resolving the path check them to make sure it is correct in terms of case-sensitivity....
Read more >
Webpack makes invalid bundle when change the module's ...
I have windows, it means that module paths should be case insensitive and the bundles must be the same all the time. Webpack...
Read more >
case-sensitive-paths-webpack-plugin | Yarn - Package Manager
This Webpack plugin enforces the entire path of all required modules match the exact case of the actual path on disk.
Read more >
Mysterious Errors: Case Sensitive Webpack Error | by Zach C
Recently while working with Webpack, I saw this error. There is another module with an equal name when case is ignored. This can...
Read more >
case-sensitive-paths-webpack-plugin - npm
Start using case-sensitive-paths-webpack-plugin in your project by running `npm i case-sensitive-paths-webpack-plugin`.
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