Skip to content

Additional Troubleshooting

Kemal Ahmed edited this page Mar 14, 2023 · 9 revisions

1

Problem: Unknown option: .name

Solution: in your babel config, take the module out of presets and put in plugins

2

Problem: Unable to resolve module@envfromsrc/utils/Environment/util.ts: @env could not be found within the project.

https://github.com/facebook/react-native/issues/29351#issuecomment-657929014

3

Problem: Unable to resolve module 'fs' from 'node_modules/react-native-dotenv/index.js'

Solution: do not use fs for this. Make sure you double check the migration guide

Sentry

Sentry has its own non-standard dotenv system that overrides other dotenv libraries. You'll need to set SENTRY_LOAD_DOTENV=0 https://docs.sentry.io/product/cli/configuration/

Clone this wiki locally