TurboWarp / scratch-vm

Scratch VM with a JIT compiler and more features
https://turbowarp.org/
Mozilla Public License 2.0
75 stars 72 forks source link

npm start => Error: error:0308010C:digital envelope routines::unsupported #90

Open tapiov opened 1 year ago

tapiov commented 1 year ago

I posted below issue to LLK/scratch-vm. Their response was

"The playground stopped working because the API for loading a project was recently updated."

Since Turbowarp is in active development, I wonder is the API update fix going to be include to Turbowarp in future?


Expected Behavior npm start would start without error Scratch VM playground would open a project

Actual Behavior Emits error and fails to start Error: error:0308010C:digital envelope routines::unsupported

Steps to Reproduce Use latest Node-JS LTS 18.12.1 x64 npm start

-- Probably caused by updated Node-JS so trying legacy SSL provider option set NODE_OPTIONS=--openssl-legacy-provider

npm start http://127.0.0.1:8073/playground/#119615668 opens The project doesn't load, unable to change the project in URL or input box No AST, see attached screenshot

empty

Steps to reproduce the behavior:

Install Node-JS LTS 18.12.1 x64 git clone https://github.com/LLK/scratch-vm.git cd scratch-vm npm install npm start => fails with (error:0308010C:digital envelope routines::unsupported)

set NODE_OPTIONS=--openssl-legacy-provider npm start Go to http://127.0.0.1:8073/playground/#119615668

Page screenshot above, run button only loads project 119615668. If changed, it returns to 119615668 Changing the # in URL doesn't load new project System Details Chrome Version 107.0.5304.107 (Official Build) (64-bit)

GarboMuffin commented 1 year ago

Sorry for the delay on this. You are experiencing two issues:

We don't use the scratch-vm playground and we pin to old Node.js, so this isn't super high priority for us right now