Skip to main content

I can’t seem to release a block that’s based on the unmodified Url Preview example block code.


I literally just ran:


block init nid] --template=https://github.com/Airtable/blocks-url-preview google_drive_preview


“block run” works fine.


But when I try to run “block release” here’s what I get:


scotty:google_drive_preview scotty$ block release

building

copying package.json file

copying package-lock.json file

installing node modules

lnpm]

pnpm] > core-js@3.6.5 postinstall /private/var/folders/xb/yhygdpg55d734fcsckghy__m0000gn/T/airtableBlocks/build/1590085769112/transpiled/user/node_modules/core-js

-npm] > node -e “try{require(’./postinstall’)}catch(e){}”

tnpm]

bnpm] added 78 packages in 1.701s


Error: ❌ added 78 packages in 1.701s

Failed to build the block code!

@Scotty_Allen - thanks for writing in.


A couple questions to help us debug:



  • Did you make any modifications to your blocks code between block run and block release?

  • Did you run into the error with the vanilla template (before making any modifications)?

  • Which blocks CLI version you’re using? (i.e. executing block --version from terminal)


Thank you!


@Scotty_Allen - thanks for writing in.


A couple questions to help us debug:



  • Did you make any modifications to your blocks code between block run and block release?

  • Did you run into the error with the vanilla template (before making any modifications)?

  • Which blocks CLI version you’re using? (i.e. executing block --version from terminal)


Thank you!


I’ve been trying to reproduce this bug, but without luck. @Scotty_Allen is it still an issue for you? In addition to @Richard_Sinn’s questions, I’m curious about the version of the Block CLI and Node.js, as in:


block --version
node --version

I had the same issue. The problem seemed to be with the version of npm I was using. After upgrading from 6.4.1 to 6.13.4, I was able to successfully release the block.


Reply