Open ArshanKhanifar opened 1 year ago
I also get a black screen
Hello @ArshanKhanifar, welcome to the Auth0 Developer Center Resources. You should use npm instead of yarn to run this code sample application.
Thanks for sharing your feedback. We've updated the code sample to remove the prettier
rules to avoid just what you've mentioned.
The issue of a black screen that you're having could be because the environment variables that the application needs to run are not present. /cc @rgupta33
I invite you to take a look at the "React/JavaScript + React Router 6 Code Sample: User Authentication For Basic Apps" on Developer Center Resources, which has detailed instructions on how to run this application and secure it using Auth0.
Please let us know if this works well for you or if you need further assistance. We’re happy to help.
Regarding the issue with the "spawn E2BIG" error being shown when trying to start the frontend or backend, it seems like this is an issue with how yarn treats the NOTICE
file. Deleting NOTICE
fixes it.
I got the black/blank screen fixed on my local:
• added .env
by following the instructions here
• npm install
• npm start
Thank you @e10a!
System
This is my system:
Yarn
When I do
yarn install
then doyarn api
I get this error:when I run
yarn start
I also get something similar:Trying NPM
I deleted everything and reinstalled with
npm
, and this is what I see:And on the react-server side:
Looks like the
json-webserver
is running andreact-server
is also running, but I don't see anything when firing up the browser:Here's what the inspector window shows:
Too strict build-script rules
Debugging this became really hard because you've enforced
prettier
rules on every run of the react compiler. Is that really necessary for a code sample? I feel like it adds friction to the developers experimenting if anything.