Discuss Scratch

medians
Scratcher
1000+ posts

Scratch doesn't let you backpack blocks from block palette and no text for blocks in backpacked scripts

I looked at the browser console, and noticed these two errors
projects.bundle.js:2 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘blocks’), don't know how I got this one
projects.bundle.js:2 Uncaught (in promise) Error: No block found with id *$51w+IuG8hrG89ZSY*U in workspace ]%r^LB~b4%;czd{TIgWH (also happened with different blocks and when refreshing)
redspacecat
Scratcher
1000+ posts

Scratch doesn't let you backpack blocks from block palette and no text for blocks in backpacked scripts

medians wrote:

I looked at the browser console, and noticed these two errors
projects.bundle.js:2 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘blocks’), don't know how I got this one
projects.bundle.js:2 Uncaught (in promise) Error: No block found with id *$51w+IuG8hrG89ZSY*U in workspace ]%r^LB~b4%;czd{TIgWH (also happened with different blocks and when refreshing)
And that was happening when attempting to backpack a block?
redspacecat
Scratcher
1000+ posts

Scratch doesn't let you backpack blocks from block palette and no text for blocks in backpacked scripts

redspacecat wrote:

And that was happening when attempting to backpack a block?
Ah, it does appear so.
I get this error
Uncaught (in promise) Error: No block found with id Sv(hAKZmiI~e_2Oya@JY in workspace |g`+n+m~.GqG)xx1x+iQ
when attempting to backpack a block.
Looking at the code in the browser console, it looks like it's possibly trying to find that block in the block workspace? Maybe dragging form palette isn't accounted for here or something?
  const t = dn.getMainWorkspace(),
o = t.getBlockById(e);
if (!o) return Promise.reject(
new Error(
'No block found with id '.concat(e, ' in workspace ').concat(t.id)
)
);

Powered by DjangoBB