zetachang / react-native-dotenv

A Babel preset let you import application configs from .env file (zero runtime dependency)
MIT License
915 stars 68 forks source link

react-native 0.50.0 and storybook: unable to resolve module "path" from `.../react-native-dotenv.index.js` #31

Open macrozone opened 6 years ago

macrozone commented 6 years ago

on react-native 0.50.0 in conjunction with storybook i get the following error:

unable to resolve module "path" from .../react-native-dotenv.index.js

I don't really know why this happens... it used to work in react-native 0.49

chriteixeira commented 6 years ago

I'm having the same problem after an update from rn 0.44 to rn 0.50 . In my case, I'm not using storybook.

macrozone commented 6 years ago

I am now using https://github.com/luggit/react-native-config which works with react-native 0.50

jamesholcomb commented 6 years ago

I tested and confirmed working on 0.50.3.

Check https://github.com/zetachang/react-native-dotenv/issues/30

saroj-nf commented 4 years ago

error: Error: Unable to resolve module path from node_modules/react-native-dotenv/index.js: path could not be found within the project

hnexokonkwo commented 4 years ago

error: Error: Unable to resolve module path from node_modules/react-native-dotenv/index.js: path could not be found within the project

I have same issue on "react-native": "0.61.5"