-
Notifications
You must be signed in to change notification settings - Fork 184
UI Created not rendering on production deployment. #170
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
Comments
I get the exact same issue right now! would you have a clue @enuchi ? |
Is it happening with a fresh clone? |
I just tried, and the fresh clone seems to work ok. The only issue was to install
2.4.1 shows regular error (google offline message). |
@FearTheBeard95 can you try |
@enuchi, when I open in chrome the bundled HTML produced by webpack it works, while in the app script iFRAME I have a blank page without error. Very weird (on my repo) |
I solved this with npm run deploy:dev and some webpack fixes for the dev mod |
@shufflebyte it looks like you have a separate issue than described above as yours appears to be happening in local development, not production build. It looks like the issue with your case may be the GASClient is not loaded correctly from the unpkg.com CDN. Do you see any failed network call when opening the Can you also share your browser, OS, and node version? |
Hi @enuchi , thank you for your quick responses. You were right, I had another problem and also was on another topic, which is solved now. I tried again a few minutes ago and the issue has been solved by itself ;-). I also took a look in the network tab in my browser and there were no problems to find either. Thanks |
I am also seeing some weirdness where a development deployment works fine with I saw this previously a few months ago and think I corrected it by reordering some imports in one of my components. I haven't been able to isolate what's wrong this time though. |
Any network failures or console errors @mattalco? Also please share node version and OS. |
Thanks so much for following up, @enuchi. I don't see any network or console errors beyond the usual chatter. I just compared a working branch of my code with the newer one that isn't working and I don't see any new/differing messages. My node version is v16.15.0 and I am running macOS 13.2.1. When I saw this issue back in October, I was able to psuedo-trace the issue by commenting out various imports in my app until I was able to narrow things down. And even back in then, it wasn't a perfect science - I just copied my new code over line by line and file by file until it started working again. Unfortunately, that doesn't seem to be working as well this time as I can only get a working response by commenting out 90%+ of my app. My gut makes me think it's something with Babel/Webpack and how they may be doing something differently in dev vs. prod but I'm not familiar enough with those to diagnose effectively. |
My mind is blown right now - this fixed it! I have made some small changes to the original base project, such as adding Tailwind support (full list of packages below). It's very strange to me that nothing between my old code and new code added any packages - I did remove one lodash module (sortBy I believe it was). I guess there's a difference somewhere though between dev and prod where template literals could cause a silent breakage and somehow my old code skirted this issue. Thank you so much for your help with this. I really appreciate your timely responses and all the work you've put into this.
|
Great, glad this helped. I will work on getting that PR completed, just need to take a closer look. |
I am getting this same error. I can recreate it on a brand new clone of this repo:
It works when you run My node version is
These were all installed in the "dependencies" section. Thanks for this excellent library and please let me know if you have any questions! |
Also, is there a way to show error logging when running the deploy command? I am not so good at React but I would think some sort of temporary logging could help sort this out. |
So, my case is similar to @mattalco in that |
If I copy the output of If I copy the Not sure if any of that helps |
If I log the output of
It has the closing body and html tags so I know it didn't get truncated. |
Yes I will try to find relevant issues a bit later today. |
Did you try the fix posted above? https://github.com/enuchi/React-Google-Apps-Script/pull/160/files |
Yeah, that seems to work! I saw the above referenced issue but I guess I didn't think to try the PR you linked to. But it all seems to be working well. Thanks! |
Hi, i've started using this template for an add on on google sheet. I have this issue when i deploy the project the UI does not render but when running it in dev using
npm run start
the UI shows up as it shouldThe text was updated successfully, but these errors were encountered: