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

i.map is not a function #961

Closed
mifeputri-34 opened this issue Jul 22, 2024 · 1 comment
Closed

i.map is not a function #961

mifeputri-34 opened this issue Jul 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mifeputri-34
Copy link

mifeputri-34 commented Jul 22, 2024

Describe the bug
I am using the @blocknote/server-util library to convert blocks to HTML on NodeJS. When I use const html = await editor.blocksToFullHTML(blocks); (or blocksToMarkdownLossy), the error "i.map is not a function" occurs.

To Reproduce
image

Misc

  • Node version: v20.15.0
  • Package manager: 1.1.11
  • Browser:
@mifeputri-34 mifeputri-34 added the bug Something isn't working label Jul 22, 2024
@mifeputri-34
Copy link
Author

Sorry, it's my mistake. The error is that I passed a string instead of using JSON.parse(string).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant