goatandsheep / react-native-dotenv

Load react native environment variables using import statements for multiple env files.
https://www.npmjs.com/package/react-native-dotenv
MIT License
807 stars 48 forks source link

Set node version requirement #468

Open IgorNadj opened 1 year ago

IgorNadj commented 1 year ago

Node 18 introduces prefix-only node packages, e.g. node:path. Using this package on Node 18+ results in errors because the imports cannot be resolved.

See https://stateful.com/blog/node-18-prefix-only-modules and the previous attempt to introduce this https://github.com/goatandsheep/react-native-dotenv/pull/399

I suggest creating a 4. version of this package that supports 18+ as a solution which covers all node versions.

Link to issue

Small enough I thought it doesn't need it

stale[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

goatandsheep commented 9 months ago

Unfortunately I tried this and it caused a lot of issues so I reverted. The paths not being resolved is likely not an issue with the way the library is built. I'm happy however to help you with your bug. Please share code