New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: Error: Unable to resolve module @env #394
Comments
Hey, thank you for opening this issue! 🙂 To boost priority on this issue and support open source please tip the team at https://issuehunt.io/r/goatandsheep/react-native-dotenv/issues/394 |
Is the library installed as dev dependency? |
Also try using Babel.config.js and setting API.cache(false) |
yes, installed in devDependencies |
So as you suggested I am now using babel.config.js [BABEL]: Cannot find module 'node:fs' my react-native-dotenv version is 3.4.6 by the way. |
Can you please show me a test repo? I haven't been able to break it. |
Hey, i have successfully succeeded, i think adding import react before has fixes the issue, not sure but its work :) |
Can confirm that adding the import for the env module before importing anything else worked for me as I had just run into the same issue. |
Hi tomorrow I will verify and I can update the docs to include this :) |
Hi!, Im having the same issue, how is the fix that you used?, I have my |
Hi, I had the same issue, while trying to import through I added the |
Yes, it helped! |
Yes |
Where should people import react? |
No matter what I do, it's just not working.
babel.config.json:
error:
I have a .env file that exists.
The text was updated successfully, but these errors were encountered: