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

Error after edit process.env in code #502

Open
ObscurusGrassator opened this issue May 17, 2024 · 3 comments
Open

Error after edit process.env in code #502

ObscurusGrassator opened this issue May 17, 2024 · 3 comments
Assignees

Comments

@ObscurusGrassator
Copy link

  • [ x] Asked question in discussions
  • [ v] Tried the troubleshooting Wiki
  • [ v] Followed the migration Wiki
  • [ v] Installed library as devDependency not production dependency

code in index.jsx:

process.env.ABC = 123;

error:

Property left of AssignmentExpression expected node to be of a type ["LVal","OptionalMemberExpression"] but instead got "StringLiteral"
warning: the transform cache was reset.
debug Checking for a newer version of React Native
debug Current version: 0.74.1
debug Cached release version: 0.74.1
debug Checking for newer releases on GitHub
                Welcome to Metro v0.80.9
              Fast - Scalable - Integrated


adebug Latest release: 0.74.1 (undefined)


...



> Task :app:installDebug
Installing APK 'app-debug.apk' on 'Pixel_7_Pro_API_34(AVD) - 14' for :app:debug
Installed on 1 device.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 7s
242 actionable tasks: 31 executed, 211 up-to-date
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.jjassistant/.MainActivity }
 BUNDLE  ./index.js 

error: App/index.jsx: .../App/index.jsx: Property left of AssignmentExpression expected node to be of a type ["LVal","OptionalMemberExpression"] but instead got "StringLiteral"

Desktop (please complete the following information):

  • MacOS 14.3.1

Smartphone (please complete the following information):

  • Simulator: Pixel_7_Pro_API_34(AVD) - 14
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/502

@metacop
Copy link

metacop commented Jun 27, 2024

not working react-native 0.74.1
Install react-native-dotenv, and I have react-native 0.74.1, follow all the steps, restart the computer. I applied cache reset and nothing. any solution?
image

any solution?

@metacop
Copy link

metacop commented Jun 27, 2024

not working react-native 0.74.1 Install react-native-dotenv, and I have react-native 0.74.1, follow all the steps, restart the computer. I applied cache reset and nothing. any solution? image

any solution?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants