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

[BUG] TypeError: Cannot read properties of undefined (reading 'content') #1819

Closed
zerzerzerz opened this issue Oct 9, 2023 · 5 comments
Closed
Assignees
Labels

Comments

@zerzerzerz
Copy link

Describe the bug
TypeError: Cannot read properties of undefined (reading 'content')

Environment

  • OS: Windows 10
  • VSCode: 1.83.0
  • Markdown Preview Enhanced: 0.8.2

To Reproduce
Steps to reproduce the behavior:

  1. click the "open the preview on the side" button

Expected behavior
render the preview

Markdown file
any markdown file will lead to this error

Screenshots
image

Additional context
Add any other context about the problem here.

@zerzerzerz
Copy link
Author

It works well with version 0.8.1. But when I update it to version 0.8.2, it will lead to this error.

@LangLangBart
Copy link

  • the issue seems to have come from upgrading the crossnote package in
    a060d52 to "crossnote": "^0.8.20"
    • upgrading the package to 0.8.21 in a commit after the release of v0.8.2 seems to not
      have fixed the issue yet

  • the problem can be reproduced by using the following Markdown file and opening the preview
- an image link
- ![](/assets/images/2023-10-02-09-29-36.png)

Note

using the img tag does work correctly

<img src="" width="300">

@shd101wyy
Copy link
Owner

Will fix soon. Thanks

@LangLangBart
Copy link

  • the "crossnote": "^0.8.22" version seems to have fixed the issue (at least for me)

@shd101wyy
Copy link
Owner

Yes I also published a new release of the extension. So it should be working now. Sorry for the trouble.

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

No branches or pull requests

3 participants