Skip to content

TypeError on calendar view html rendering #2

Open
@maxwu

Description

@maxwu

Thanks for the cool mw-cli to render HTML in scripting! The issue happens with the calendar view. The rendered HTML shows an empty page in Chrome browser with below error. The MW file can be rendered in calendar view in vs-code plugin. Could I get hints on how to resolve it?

Uncaught TypeError: Cannot read properties of undefined (reading 'appState')
    at h (smoke-calendar.html:121:56698)
    at smoke-calendar.html:121:56865
    at r (smoke-calendar.html:47:57642)
    at Object.markwhenState (smoke-calendar.html:121:56594)
    at UT (smoke-calendar.html:63:2485)
    at smoke-calendar.html:121:55611
    at Lh (smoke-calendar.html:47:57857)
    at pT (smoke-calendar.html:47:57877)
    at zh (smoke-calendar.html:63:1035)
    at zT (smoke-calendar.html:63:1099)

The html file is rendered by 'mw smoke.mw smoke-calendar.html' command and the sample source of smoke.mw is:

#travel: blue
#leave: green

Section: Sample Calendar

2023-11-07/2023-11-08: @John #leave

2023-11-19/2023-11-20: @Alice #travel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions