Hi @tleunen ,
I'm using ^2.7.1 before. When i tried to update the package it makes my app crash since the package cannot find the module.
Project structure:
- index.js
- .babelrc
- src
-- src/App.js (File)
-- src/Components (Folder)
Here's my .babelrc:
{
"presets": ["react-native", "react-native-stage-0/decorator-support"],
"env": {
"production": {
"plugins": ["ignite-ignore-reactotron"]
}
},
"plugins": [
["module-resolver", {
"root": ["./src"],
"extensions": [".js", ".ios.js", ".android.js"],
"alias": {
"App": "./App",
"Components": "./Components"
}
}]
]
}
Hi @adrianha, could you also provide the source code? Which package cannot be found?
I noticed that your configuration is most probably wrong: alias and root are independent, so setting "App": "./App" might not be what you meant to do:
./src/App.js specifically, you should use "App": "./src/App" (the same for the Component)./src, there is no need to alias something that's inside of it.I'd strongly suggest just removing alias, but it's still a shot in the dark since I don't know what is exactly broken. Let me know if something helped!
Oh great @fatfisz ! Thank you for your information. Its working now using the 3.0.0 version. I just removed the alias and its working as i expected!
Most helpful comment
Oh great @fatfisz ! Thank you for your information. Its working now using the
3.0.0version. I just removed the alias and its working as i expected!