-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
Uncaught Error: Configuration must contain projectId
#34
Comments
Issue arose while using variables from .env file . How to import values from .env file into client.js ? |
I have run into this same problem but if you remove the process.env.REACT.... |
Does your project have a .gitignore file in it?? Now install the dependency Then delete the .env file and input the environment variables again... |
Yes it does but plus I did try that but I ended with the same results the only thing that worked for me was this command in powershall or even in your vscode: |
The solution to this is much more simple. The author uses REACT__APP__SANITY__PROJECT__ID=yourvalue. Just remove the extra underscores so it looks like this REACT_APP_SANITY_PROJECT_ID=yourvalue for both of the variables and remember to update them in the client.js as well and it should resume working. |
The above error occurred(displayed in the console) when I tried to integrate sanity bank-end with the react app. React app starts with a blank screen with no error in terminal. I am unable to debug the issue.
The text was updated successfully, but these errors were encountered: