Skip to content

Asset (sprite, backdrop, ...) does not load after clicking - scratch-gui v5.1.33 #9817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mvn2016 opened this issue Jan 27, 2025 · 7 comments · May be fixed by #9885
Open

Asset (sprite, backdrop, ...) does not load after clicking - scratch-gui v5.1.33 #9817

mvn2016 opened this issue Jan 27, 2025 · 7 comments · May be fixed by #9885

Comments

@mvn2016
Copy link

mvn2016 commented Jan 27, 2025

Expected Behavior

After clicking on an asset (sprite, backdrop, sound, ...) from the list of assets it should load the asset to the stage or related editor.

Actual Behavior

After clicking an asset nothing loads.

Steps to Reproduce

Steps to reproduce the behavior:

  1. clone and install https://github.com/scratchfoundation/scratch-gui.git (latest version is 5.1.33 now)
  2. npm start
  3. run scratch on localhost:8601 in a browser
  4. click on 'Choose a Sprite'
  5. select and click on a sprite
  6. the sprite does not load

System Details

Any browser

@mvn2016 mvn2016 changed the title Asset (sprite, backdrop, ...) does not loaded after clicking - scratch-gui v5.1.33 Asset (sprite, backdrop, ...) does not load after clicking - scratch-gui v5.1.33 Jan 27, 2025
@mvn2016
Copy link
Author

mvn2016 commented Feb 3, 2025

This problem has begun from scratch-gui ver 5.1.24 while migrating from scratch-storage ^2.3.1 to ^4.0.0 and it still remains.
Even if scratch-vm uses scratch-storage ^4.0.0 and scratch-gui uses scratch-storage ^2.3.1 there's no problem.
Anybody's working on this problem?

@mvn2016
Copy link
Author

mvn2016 commented Feb 5, 2025

The temporary solution follows:

1- in package.json of scratch-gui change:
"scratch-storage": "^4.0.0"
to:
"scratch-storage": "^2.3.1"

2- run:
npm install

3- in src\lib\storage.js file change:
import {ScratchStorage} from 'scratch-storage';
to:
import ScratchStorage from 'scratch-storage';

It would resolve the issue till the time Scratch team makes scratch-gui compatile with new scratch-storage.

@TurboQiang
Copy link

yes!it

The temporary solution follows:

1- in package.json of scratch-gui change: "scratch-storage": "^4.0.0" to: "scratch-storage": "^2.3.1"

2- run: npm install

3- in src\lib\storage.js file change: import {ScratchStorage} from 'scratch-storage'; to: import ScratchStorage from 'scratch-storage';

It would resolve the issue till the time Scratch team makes scratch-gui compatile with new scratch-storage.

yes,it works!!!!!

@mail2fish
Copy link

Is there a plan to address this issue in the official release?

@mvn2016
Copy link
Author

mvn2016 commented Apr 5, 2025

Is there a plan to address this issue in the official release?

I don't know, but I've found that this problem is resolved in scratch-editor.

@mail2fish
Copy link

It seems like I should switch to the scratch-editor project. :——)

@mvn2016
Copy link
Author

mvn2016 commented Apr 6, 2025

It seems like I should switch to the scratch-editor project. :——)

Seems inevitable...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants