klembot / chapbook

A simple, readable story format for Twine 2.
https://klembot.github.io/chapbook
MIT License
80 stars 25 forks source link

ReferenceError with the micro build #158

Closed mmatyas closed 7 months ago

mmatyas commented 1 year ago

Describe the bug When using the micro build of Chapbook 1.2.3, the generated HTML file produces the following JavaScript error on opening:

Uncaught ReferenceError: backstage is not defined

To Reproduce I've used Tweego for the conversion (the Twine editor didn't let me add the micro build, as it has the same name and version as the build-in format). I've manually added the micro build to Tweego as a separate story format, then build the Cloak of Darkness example with both formats for comparison (see the attachment). The regular version seems to work fine, but the micro version produces the error mentioned above in the browser's developer console.

Expected behavior Text appearing on the screen. Enjoyment and happiness.

Stories and screenshots The generated HTML files: cloak.zip

Environment Tested with Firefox and Chromium. I happen to be on Linux, if relevant.

klembot commented 1 year ago

Work on a 2.0 version is trimming down the size of the build to the point that the full version is smaller that the current micro version, so likely the micro build will be deprecated when 2.0 happens.

klembot commented 7 months ago

The 2.0.0 version is now out, and is smaller than the 1.x micro build was.