Discuss Scratch

chipmunkmc
Scratch Team
58 posts

Website development

Regarding the Scratch 3.0 problem, while writing a forum post I was prepared to post on a modding thread on scratch.mit.edu, I think I realized what's going on.
I'm sourcing scratch-gui from the monorepo, but other dependencies from NPM, and scratch-editor and scratch-www might even use different versions! The offending fetch-worker.*.js file is from another dependency, scratch-storage!!!
So now I think I now how to fix everything, and will try tomorrow. Anyway I'll go to bed now.

Last edited by chipmunkmc (April 19, 2026 05:46:05)


https://max.chipmunk.land/
hi, this is my signature!
neweaglergigtek
Scratcher
6 posts

Website development

how did you get scratch membership themes for free here @chipmunkmc
neweaglergigtek
Scratcher
6 posts

Website development

Heathercat123 wrote:

chipmunkmc wrote:

we could ignore these unsupported operations, or inject "Instruction not supported" handlers perhaps, maybe…

So, like, would it just throw errors whenever it hits a 3.0 block? That would kind of ruin the immersion, wouldn't it?

chipmunkmc wrote:

As for backpacking, we could also store two separate backpacks

Fair enough

chipmunkmc wrote:

sorry if this makes deciding on anything harder…

There's no need to be sorry, that's just how designing things work. Someone has an idea, someone else gives feedback.

how did you make every user get scratch membership for free?

Attachments:
attachment Screenshot 2026-04-19 at 7.34.09PM.png (598.0 KB)

chipmunkmc
Scratch Team
58 posts

Website development

neweaglergigtek wrote:

how did you get scratch membership themes for free here @chipmunkmc

Pretty sure I patched out the membership check for that theme, I don't remember the specifics.
If you want you can read the code, which is avaulable at here.

Also, please don't fill this thread with inane questions and requests, as you seem to always do.
Instead, consider making threads in these forums:
* Questions about Scratch
* Requests
* Suggestions
The advanced topics forum is meant for technical discussion, and this thread is meant for such discussion about developing the website. Unless you're here to assist in said development, GTFO.

https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
58 posts

Website development

I cannot find a scratch-editor commit with scratch-gui version 12.6.4, amazing!

https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
58 posts

Website development

And now I'm unsure if it's a version issue, and scratch-editor (at least the version I have) does not actually seem to bundle a scratch-storage version in the monorepo, oof…
Shit has really hit the fan, I don't know what else to say.

https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
58 posts

Website development


> scratch-editor@12.6.2 prepare
> husky install

sh: line 1: husky: command not found

At this point I should probably just ask about the matter on scratch.mit.edu's forums.

https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
58 posts

Website development

I know I'm late but I'm afraid I'll get b& (or alerted or something like that) from scratch.mit.edu if I link to repos with "scr.chipmunk.land" in the name… meh I'll probably post it anyway.
Edit: https://scratch.mit.edu/discuss/topic/289503/?page=38#post-9118759 here goes nothing!

Last edited by chipmunkmc (April 21, 2026 03:55:44)


https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
58 posts

Website development

Perhaps it's because scratch-www explicitly specifies a version of scratch-storage, despite it being depended on by scratch-gui already. I ran npm run start, let's see if it works in the first place this time.

https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
58 posts

Website development


ERROR in ./src/lib/storage.js 1:0-49
Module not found: Error: Can't resolve 'scratch-storage' in '/home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/src/lib'
resolve 'scratch-storage' in '/home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/src/lib'
Parsed request is a module
using description file: /home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/package.json (relative path: ./src/lib)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
/home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/src/lib/node_modules doesn't exist or is not a directory
/home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/src/node_modules doesn't exist or is not a directory
looking for modules in /home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/node_modules
single file module
using description file: /home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/package.json (relative path: ./node_modules/scratch-storage)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/node_modules/scratch-storage doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/node_modules/scratch-storage.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/node_modules/scratch-storage.json doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
/home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/node_modules/scratch-storage.wasm doesn't exist
/home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/node_modules/scratch-storage doesn't exist
/home/max/projects/code.chipmunk.land/scr.chipmunk.land/node_modules doesn't exist or is not a directory
/home/max/projects/code.chipmunk.land/node_modules doesn't exist or is not a directory
/home/max/projects/node_modules doesn't exist or is not a directory
/home/max/node_modules doesn't exist or is not a directory
/home/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
@ ./src/views/preview/project-view.jsx 21:16-55
@ ./src/views/preview/preview.jsx 20:22-51

Well I re-added the dependency, perhaps something will magically change now.

https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
58 posts

Website development

And `npm i` made it disregard my links… amazing

https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
58 posts

Website development


Module not found: Error: Can't resolve 'utf-8-validate' in '/home/max/projects/code.chipmunk.land/scr.chipmunk.land/scratch-www/vendor/scratch-editor/node_modules/isomorphic-dompurify/node_modules/ws/lib'
@ ../../node_modules/isomorphic-dompurify/node_modules/ws/lib/websocket.js 17:19-42
@ ../../node_modules/isomorphic-dompurify/node_modules/ws/index.js 3:18-44
@ ../../node_modules/isomorphic-dompurify/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js 7:18-31
@ ../../node_modules/isomorphic-dompurify/node_modules/jsdom/lib/jsdom/browser/Window.js 19:22-83
@ ../../node_modules/isomorphic-dompurify/node_modules/jsdom/lib/api.js 13:25-61
@ ../../node_modules/isomorphic-dompurify/index.js 1:194-210
@ ../scratch-svg-renderer/src/sanitize-svg.js 10:16-47
@ ../scratch-svg-renderer/src/index.js 5:18-43
@ ./src/SVGSkin.js 25:15-55
@ ./src/RenderWebGL.js 34:14-34
@ ./src/index.js 1:18-42

2 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '–stats-error-details' to show it.

ERROR in ../../../../node_modules/canvas/build/Release/canvas.node 1:0
Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
@ ../../../../node_modules/canvas/lib/bindings.js 3:17-56
@ ../../../../node_modules/canvas/index.js 7:17-42
@ ../../node_modules/isomorphic-dompurify/node_modules/jsdom/lib/jsdom/utils.js 102:2-36
@ ../../node_modules/isomorphic-dompurify/node_modules/jsdom/lib/jsdom/browser/Window.js 8:26-45
@ ../../node_modules/isomorphic-dompurify/node_modules/jsdom/lib/api.js 13:25-61
@ ../../node_modules/isomorphic-dompurify/index.js 1:194-210
@ ../scratch-svg-renderer/src/sanitize-svg.js 10:16-47
@ ../scratch-svg-renderer/src/index.js 5:18-43
@ ./src/SVGSkin.js 25:15-55
@ ./src/RenderWebGL.js 34:14-34
@ ./src/index.js 1:18-42


Now scratch-render won't build (needed for scratch-vm which has the extension-worker)

https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
58 posts

Website development

Finally, scratch-www works again!!! Except the fetch-worker script needs to be copied to another folder manually for some reason…
Also a while ago I created a merge commit that changed a bunch of things, except I see no new commits preceed it; no idea what I did that night when I made it…
I'll need to be less lazy and be more careful with testing updates now, I suppose.

https://max.chipmunk.land/
hi, this is my signature!
Heathercat123
Scratcher
27 posts

Website development

chipmunkmc wrote:


I'm sourcing scratch-gui from the monorepo, but other dependencies from NPM, and scratch-editor and scratch-www might even use different versions! The offending fetch-worker.*.js file is from another dependency, scratch-storage!!!


So dependency hell

chipmunkmc wrote:

Finally, scratch-www works again!!!

Congrats!

Creator of much of the backend code for this website (the Scratch section, not the rest!) along with contributions from @chipmunkmc.
chipmunkmc
Scratch Team
58 posts

Website development

Thanks! Also I updated the fork's README.md to include the current instructions, which I might be able to reduce later. Also, I may try to use workspaces instead of npm link again (last time failed due to the canvas issue, it was unrelated to me using workspaces).

Also there's a wiki at http://wiki.scr.chipmunk.land/ now! It currently lacks some extensions and has no templates (which I might try to import from en.scratch-wiki.info later) though.
I may try porting the old skins to latest LTS MediaWiki later; fortunately I have some experience with porting modifications to old MonoBook to the latest version of the skin, and it seems the ScratchWikiSkin-1.x skin is based on it.

Last edited by chipmunkmc (April 28, 2026 04:22:48)


https://max.chipmunk.land/
hi, this is my signature!
Heathercat123
Scratcher
27 posts

Website development

chipmunkmc wrote:

I may try porting the old skins to latest LTS MediaWiki later; fortunately I have some experience with porting modifications to old MonoBook to the latest version of the skin, and it seems the ScratchWikiSkin-1.x skin is based on it.

It seems like someone has already done that: https/github.com/Mrcomputer1/ScratchWikiSkin-1.x-Updated, though, if I remember correctly, it requires a few modification to run on the latest MediaWiki version without throwing errors/warnings.

Edit: I really need to fix forum links

Last edited by Heathercat123 (April 29, 2026 20:28:33)


Creator of much of the backend code for this website (the Scratch section, not the rest!) along with contributions from @chipmunkmc.
aaaaa
New Scratcher
3 posts

Website development

It's quite amazing how https://r2.scr.chipmunk.land/ (and scratchr2's frontend code in general) can load projects on IE8 and IE9, and the site in general works somewhat well on the latter.
Even this forum works on it, although it is quite glitchy.
My browser / operating system: Windows Vista, Microsoft Internet Explorer 9.0, Flash 34.0 (release 0)
My browser / operating system: Windows Vista, Unknown Browser, Flash 34.0 (release 0) <– actually New Moon (roytam1's version of Pale Moon for Windows XP/Vista)
aaaaa
New Scratcher
3 posts

Website development

Hello from my phone! Not as notable as posting from IE but whatever.
My browser / operating system: Android Linux 7.0, Chrome 108.0.0.0, No Flash version detected
neweaglergigtek
Scratcher
6 posts

Website development

neweaglergigtek
Scratcher
6 posts

Website development

Heathercat123 wrote:

It's been 24 hours (the Official™ maximum time the teacher account verification should take) and I still have no news from the ST Maybe they're just slow…?

scratch addons port to ts when?

Powered by DjangoBB