Why inserting Google client ID make React produce the Uncaught SyntaxError: Invalid left-hand side in assignment

122 views Asked by At

I'm working on how to use variable from process.env. When I inserted the Google Client ID and npm start, React produce an error in browser's console Uncaught SyntaxError: Invalid left-hand side in assignment.

The variables in .env that not produce an error.

REACT_APP_TITLE=How To React
REACT_APP_DESCRIPTION="Using .env file in React js"

The variable in .env that produce an error.

REACT_APP_GOOGLE_CLIENT_ID="000000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
0

There are 0 answers