Skip to content

Deleting index.html causes error when running sketch #1070

Open
@andrewn

Description

@andrewn

Nature of issue?

Found a bug

Details about the bug:

  • Web browser and version: All
  • Operating System: All
  • Steps to reproduce this bug:
  1. Create a new sketch
  2. Open the file browser sidebar
  3. Open the menu for index.html
  4. Delete the file
  5. Press the play button to run the sketch

The page goes blank with a JS console error this.props.htmlFile is undefined.

I think this happens becuase a sketch must have a single html file.

I guess the editor should not allow the HTML file to be deleted?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions