Skip to content

Web hot reload broken in vrsion 5.6.250 #8087

@alexleybourne

Description

@alexleybourne

Is there an existing issue for this?

Describe the bug

Hi there, I have been using GDevelop to make web games for my job and have found that since the big 3d update the hot reload no longer works.

I am on GDevelop desktop version 5.6.250 MacOS

When I am editing/updating the game in web before I could make a change in the desktop editor and press update with no issues.

now I have to press update. then my web view breaks/crashes. Then in the editor hit preview and do the local preview and then let that build. After that the web preview works again and has my new updates.

When the web preview breaks there is this error in the console:

Uncaught TypeError: can't access property "variables", e is undefined _ runtimegame.ts:286 <anonymous> (index):200 <anonymous> (index):212

I cannot provide my game file sorry.

side note: I really enjoy the software you have created. Thank you.

Steps to reproduce

  1. Start Network Preview
  2. Open network preview in a browser (firefox or chrome)
  3. Game loads fine
  4. Make a change in the editor (I just updated a text value to demo)
  5. Press Update
  6. Game will update but if you refresh the browser you now get this error:

Uncaught TypeError: can't access property "variables", e is undefined _ runtimegame.ts:286 <anonymous> (index):200 <anonymous> (index):212

You cannot play your game in the browser at all now.

  1. Go back to the editor and press preview to do the local game preview
  2. The game works and loads fine
  3. Now you can refresh your browser and the game works again...

It seems like the preview button doing a fresh build each time fixes it and the hot reload breaks it

GDevelop platform

Desktop

GDevelop version

5.6.250-11a096dbabc15f5aa36b84e65ce04d8e7619f4ab

Platform info

Details

OS (e.g. Windows, Linux, macOS, Android, iOS)

macOS

OS Version (e.g. Windows 10, macOS 10.15)

Tahoe 26.1

Browser(For Web) (e.g. Chrome, Firefox, Safari)

Chrome or Zen (Firefox)

Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)

N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions