Skip to content

Additional Troubleshooting

Kemal Ahmed edited this page Nov 18, 2020 · 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. Also make sure you double check the migration guide, especially make sure all import { xxx } from 'react-native-dotenv'; are changed to import { xxx } from '@env';

Clone this wiki locally