Help

Re: Block is stuck on previous code?

4606 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Avi_Moondra
5 - Automation Enthusiast
5 - Automation Enthusiast

After writing some new code, after refreshing my block in Airtable (and re-running my local server that is serving up the block)… I keep getting old code or some sort of old instance of the block.

The block builds successfully.

Is there any workaround?

https://github.com/avimoondra/airtable-block-graphql-import if it’s possible test elsewhere

5 Replies 5
Avi_Moondra
5 - Automation Enthusiast
5 - Automation Enthusiast

(Ended up creating a new block for now)

Hi! To clarify: is the development mode stuck on previous code (what you see after you click “Edit block” or the released version (after you run block release and exit development mode)?

Avi_Moondra
5 - Automation Enthusiast
5 - Automation Enthusiast

Development mode stuck on previous code - what you see after you click “Edit block”

Hi @Avi_Moondra. Has the new Block been giving you the same problem? If so, could you share the following:

  • version of the Blocks SDK you’re using
  • version of Node.js
  • operating system name and version

Hi, thanks for posting this. We had the same problem in editing the hello example we got stuck using useGlobalConfig where we forgot to scrub the ID of one table to switch to another. We found when we updated the code that the local host was not updating for us but using the “Edit block” allowed us to then make the code changes locally and see the console with the new changes.
Hello World!
v12.14.1
Mac 10.15.5