cubing / cubing.js

🛠 A library for displaying and working with twisty puzzles. Also currently home to the code for Twizzle.
https://js.cubing.net/cubing/
GNU General Public License v3.0
232 stars 42 forks source link

[cubing.js issue] Broken SVG state editor #297

Closed lgarron closed 9 months ago

lgarron commented 9 months ago

Steps to reproduce the issue

  1. Visit https://experiments.cubing.net/cubing.js/svg-state-editor/

Observed behaviour

index.ts:276 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'addEventListener')
    at new h (index.ts:276:18)
    at a.display (index.ts:181:27)
    at a.setPuzzleSync (index.ts:158:10)
    at a.createAsync (index.ts:130:14)
    at async m.displayStateText (index.ts:104:43)

🖼 Screenshots

No response

Expected behaviour

No error.

Environment

Chrome 117.0.5938.132

Additional info

No response

lgarron commented 9 months ago

Aha, I was using an outdated URL from my browser history: https://experiments.cubing.net/cubing.js/svg-pattern-editor/?puzzle=3x3x3

I'll delete old files on the server.