Help

The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.

Can't release example block

Topic Labels: Custom Extensions
2193 3
cancel
Showing results for 
Search instead for 
Did you mean: 
Scotty_Allen
4 - Data Explorer
4 - Data Explorer

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 [id] --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
[npm]
[npm] > 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){}”
[npm]
[npm] added 78 packages in 1.701s

Error: :x: added 78 packages in 1.701s
Failed to build the block code!

3 Replies 3
Richard_Sinn
Airtable Employee
Airtable Employee

@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
Jason_Souza
4 - Data Explorer
4 - Data Explorer

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.