Giter Site home page Giter Site logo

Comments (10)

lukas1994 avatar lukas1994 commented on July 29, 2024 1

yeah I've seen this thread
now I'm even getting the error after doing the modification described in my initial post
using an incognito tab with only one logged in account also doesn't fix it :/

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

Not sure if you've seen this thread: https://issuetracker.google.com/issues/150247026

Are you logged in to multiple google accounts when you're seeing this issue in your addon?

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

How about in firefox?

from react-google-apps-script.

lukas1994 avatar lukas1994 commented on July 29, 2024

this is really weird, I just added a console.log statement to the top of the file and now it works
is it usually that buggy or is there something weird going on with my setup?

from react-google-apps-script.

lukas1994 avatar lukas1994 commented on July 29, 2024

one issue could also be that it takes a while to deploy the app, so that I'm seeing old versions

from react-google-apps-script.

lukas1994 avatar lukas1994 commented on July 29, 2024

looks like the issue is actually just moving the functions to the top of the file
is there a way to make webpack do that automatically?

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

Hmm. Are you running the new chrome v8 runtime or not?

Webpack is already exposing those functions, using gas-webpack-plugin. That plugin brings any functions attached to global.* to the global scope, by first declaring them as functions at the top of the script and then defining the function body below. See line 1 in the included example app. If it only works when you define the full onOpen function at the top then maybe there are other permissions errors that are throwing in the bundled webpack script. I'm not sure.

Are you running the new chrome v8 runtime? There might be some discrepancies between the new v8 runtime and functions in the global scope but I haven't encountered these.

And does the app work for you if you run the demo app?

from react-google-apps-script.

lukas1994 avatar lukas1994 commented on July 29, 2024

looked like it was a clasp issue,
just created this: google/clasp#761
for now, the work-around is to create the version in the UI

from react-google-apps-script.

lukas1994 avatar lukas1994 commented on July 29, 2024

BTW I'm using v8 if that helps.

from react-google-apps-script.

pragi-balasubramanian-alation avatar pragi-balasubramanian-alation commented on July 29, 2024

@lukas1994

Help me: google/clasp#761 (comment)

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.