Giter Site home page Giter Site logo

Comments (9)

WillLiuMH avatar WillLiuMH commented on July 29, 2024

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.

sjoshuadarth avatar sjoshuadarth commented on July 29, 2024

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.

enuchi avatar enuchi commented on July 29, 2024

@WillLiuMH or @sjoshuadarth happy to look into this. Can you explain how to reproduce?

from react-google-apps-script.

sjoshuadarth avatar sjoshuadarth commented on July 29, 2024

Repo

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.

enuchi avatar enuchi commented on July 29, 2024

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.

etaytch avatar etaytch commented on July 29, 2024

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.

IhorBalan avatar IhorBalan commented on July 29, 2024

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.

mcmxcdev avatar mcmxcdev commented on July 29, 2024

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.

enuchi avatar enuchi commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.