Closed apugoneappu closed 1 year ago
Sure -- couple questions to try to sort it out
What platform are you using?
Using : macOS Ventura 13.0.1 (22A400) node v14.17.4 npm 7.20.3
Is this a fresh clone or have you modified any files?
Fresh clone
Assume you've set up the certs correctly as in the docs https://github.com/enuchi/React-Google-Apps-Script#-new-local-development-
Yep, this was the output of npm run setup:https
:
> react-google-apps-script@2.1.0 setup:https
> mkdirp certs && mkcert -key-file ./certs/key.pem -cert-file ./certs/cert.pem localhost 127.0.0.1
Created a new certificate valid for the following names 📜
- "localhost"
- "127.0.0.1"
The certificate is at "./certs/cert.pem" and the key at "./certs/key.pem" ✅
It will expire on 27 February 2025 🗓
Any errors in the console?
Hmm really not sure. If you're able to load the page https://localhost:3000/dialog-demo-tailwindcss-impl.html in a new tab then it should also work when loading from the iframe, which you said you confirmed is showing the right src
url.
src=""
, see a white screen, and then change back to src="https://localhost:3000/dialog-demo-tailwindcss-impl.html"
and it will immediately reload the page normally. If this is not happening and you've confirmed you're able to load https://localhost:3000/dialog-demo-tailwindcss-impl.html in a new tab then something in your browser is blocking that iframe from loading the content."you've confirmed you're able to load https://localhost:3000/dialog-demo-tailwindcss-impl.html in a new tab then something in your browser is blocking that iframe from loading the content" was spot on!
I was using Brave browser, disabled Brave Shields for Spreadsheets and it started working! Thanks a lot!!
When I run,
npm run start
, the sidebar and modals are all empty. However, it's fine with 'npm run deploy'. I've checked that the iframe has the correct URL (https://localhost:3000/dialog-demo-tailwindcss-impl.html) and that it is being served correctly (opening normally when visiting the webpage directly in new tab).