Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

TypeError Encountered and not being able to use the function #1

Open
Edwin824 opened this issue Apr 21, 2022 · 3 comments
Open

TypeError Encountered and not being able to use the function #1

Edwin824 opened this issue Apr 21, 2022 · 3 comments

Comments

@Edwin824
Copy link

  • I'm submitting a ...
    [x] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    Hi, I am facing an issue using this package as importing it isn’t working. My import statement was,

import parseHtmlToNotionBlocks from ‘html-to-notion’

But when I used the parseHtmlToNotionBlocks function, it raises a TypeError on it not being a function.

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
@miketako3
Copy link

miketako3 commented May 15, 2022

I found a way to fix it. So I share for you.

change

parseHtmlToNotionBlocks(html)

to

parseHtmlToNotionBlocks.default(html)

This works fine on my environment.

@Edwin824
Copy link
Author

Thanks Mike. That’s nice and I will try it again.

@Edwin824
Copy link
Author

Appreciate the great share with me.

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

No branches or pull requests

2 participants