Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError on calendar view html rendering #2

Open
maxwu opened this issue Nov 2, 2023 · 3 comments
Open

TypeError on calendar view html rendering #2

maxwu opened this issue Nov 2, 2023 · 3 comments

Comments

@maxwu
Copy link

maxwu commented Nov 2, 2023

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
@kochrt
Copy link
Member

kochrt commented Nov 3, 2023

I just bumped some outdated deps, can you update the CLI to 1.2.4 and try again?

@maxwu
Copy link
Author

maxwu commented Nov 5, 2023

Hey Rob, thanks for the reply. It still happens with [email protected].

❯ mw --version
1.2.4
❯ mw smoke.mw smoke-calendar.html
❯ open smoke-calendar.html &

Then I saw the same error log in Chrome DevTools console:
image

@cba85
Copy link

cba85 commented Apr 29, 2024

I have the same problem using mw 1.2.4 😞

Screenshot 2024-04-29 at 11 09 27

Edit: Timeline view works perfectly. It's just the calendar view that doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants