Skip to content
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

[Feature request] Support react-native-web #310

Closed
mary-ng5519 opened this issue Apr 22, 2022 · 5 comments
Closed

[Feature request] Support react-native-web #310

mary-ng5519 opened this issue Apr 22, 2022 · 5 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@mary-ng5519
Copy link

mary-ng5519 commented Apr 22, 2022

Folks, we love your work, please help support this module for react-native-web sourcebase, we believe that your work will be recognized both on react-native and cross-stack communities, RNW is now the most prominent one in industrial ICT projects
Reference:

  1. https://github.com/necolas/react-native-web (400K+ sourcebase worldwide)
  2. https://github.com/vemarav/react-native-web-typescript-template
    Cheers,
@github-actions
Copy link

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/310

@goatandsheep
Copy link
Owner

Hi @phathuynh5519 thank you! Are you facing any issues supporting web?

@mary-ng5519
Copy link
Author

mary-ng5519 commented Apr 26, 2022

Hi @phathuynh5519 thank you! Are you facing any issues supporting web?
Yep Dear, would u please support us, we tried uninstall node_modules folder and reinstall npm, but the sourcebase run properly in RN environment

TS2307: Cannot find module '@env' or its corresponding type declarations.
    16 | import {Lookup} from './screens/Lookup';
    17 | import Realm from 'realm';
  > 18 | import {email, password, realmID} from "@env";
       |                                                  ^^^^^^
    19 | import {getCurrentUser, addCurrentUser} from './constants/Realm';
    20 | const Tab = createBottomTabNavigator();
    21 |
  Binaries:
    Node: 16.13.2 - D:\Program Files\nodejs\node.EXE      
    Yarn: 1.22.4 - D:\Roaming\npm\yarn.CMD
    npm: 6.14.5 - D:\Roaming\npm\npm.CMD

@goatandsheep
Copy link
Owner

goatandsheep commented Apr 26, 2022

Oh this is a typescript issue. Can you try changing moduleName to "react-native-dotenv" and use "react-native-dotenv" instead of "@env" ? Let me know if this helps. There's more info on the readme

@stale
Copy link

stale bot commented Jun 27, 2022

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.

@stale stale bot added the wontfix This will not be worked on label Jun 27, 2022
@stale stale bot closed this as completed Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants