Comments (9)
So I've determined this is 100% due to redux. I pulled a clean copy of this repo and added redux to it, started getting the error again. The weird thing is the error will still happen only some of the time, without any of the code changing. The only thing that is changing is me npm run start
and npm run deploy
over and over again.
from react-google-apps-script.
I've been experiencing the same. Sometimes the prod deploy would work by deploying it to a new version from the GAS editor. I'm not able to pinpoint what's wrong with redux because the same app running on a normal react app is running smoothly.
from react-google-apps-script.
@WillLiuMH or @sjoshuadarth happy to look into this. Can you explain how to reproduce?
from react-google-apps-script.
The issue is still present, I created a new clasp version for this. Deployed the change and had to redeploy on the script. It returned blank. Had to redeploy again and I was able to see the screen.
from react-google-apps-script.
Are you both running web apps? I see you're using react router dom which might be incompatible with how Google wants you to use browser history in web apps: https://developers.google.com/apps-script/guides/web#web_apps_and_browser_history
from react-google-apps-script.
I'm experiencing the same.
Started to happen only when I added redux to the code.
@enuchi I do use react router dom, but it never happened before introducing redux..
Usually running npm run deploy
before npm run start
solves this..
But this can happen on almost every execution of npm run start
...
from react-google-apps-script.
Try to add the following scripts to the head of your .html file. Be aware to set react version that you use in your app.
<script src="https://unpkg.com/react@17/umd/react.production.min.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js" crossorigin></script>
from react-google-apps-script.
I also encountered this right now, as a new user with a freshly cloned project. I tried to figure out how the "live reload on save" works, but didn't get far.
npm run deploy
-> all three demo iframes are working
npm run start
-> all three demo iframes are blank
from react-google-apps-script.
Note, there have been significant updates to the way local development works, as well as to the packages used. Please try again with a fresh copy and let me know if you are still experiencing these issue with redux and local development.
from react-google-apps-script.
Related Issues (20)
- Can we migrate to vite? HOT 4
- White (blank) sidebar in Chrome when using Station wallet Chrome extension HOT 12
- How to use shadcn/ui HOT 1
- Issue: app is not loaded when I deploy, but does work with HMR HOT 2
- I want to use fast refresh without https
- How to deploy a google workspace addon using this? HOT 6
- Is it possible to pass initial state to React root component? HOT 3
- Uncaught ReferenceError: react is not defined HOT 1
- Typescript support for custom functions HOT 14
- Seeing "Running script" with "Cancel" and "Dismiss" instead of "Working" when executing opening the sidebar HOT 2
- Support for NextJs HOT 4
- Uncaught ReferenceError: emotionReact is not defined at 9291 (userCodeAppPanel:2:53729) HOT 5
- JSdocs Autocomplete not working as expected HOT 9
- ReferenceError: TextEncoder is not defined : how to diagnose a solution HOT 3
- TypeScript support for TableCell.setBold() TableCell.setFontSize() HOT 1
- Solution for webapp react-router sync with google.script.history (Client-side API) HOT 3
- How to expose an Appscript ServerFunction to the user for attaching as a script? HOT 3
- How to create custom functions in V3 version? HOT 5
- [Q] Any breaking change while migrating from V2 webpack to V3 vite? HOT 2
- Close dialog in Development Mode using google.script.host.close() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-google-apps-script.