jpuri / jpuri/draftjs-to-html

draftToHtml is not function

Open
#48 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
325
Forks
139
PR merge metrics
No merged PRs in 30d

Description

at the time of implementing the function I get the following error:

draftjs_to_html_1.default is not a function
TypeError: draftjs_to_html_1.default is not a function
at WysiwygCustom._this.getContentText (http://localhost:9001/0.b77eb44ab9d2dac8797c.hot-update.js:86:60)
at WysiwygCustom._this.onEditorStateChange (http://localhost:9001/0.b77eb44ab9d2dac8797c.hot-update.js:34:42)
at WysiwygCustom.webpackHotUpdate.1359.WysiwygCustom.componentDidMount (http://localhost:9001/0.b77eb44ab9d2dac8797c.hot-update.js:121:14)
at commitLifeCycles (http://localhost:9001/static/preview.bundle.js:45867:22)
at commitAllLifeCycles (http://localhost:9001/static/preview.bundle.js:46961:7)
at HTMLUnknownElement.callCallback (http://localhost:9001/static/preview.bundle.js:31719:14)
at Object.invokeGuardedCallbackDev (http://localhost:9001/static/preview.bundle.js:31757:16)
at invokeGuardedCallback (http://localhost:9001/static/preview.bundle.js:31806:29)
at commitRoot (http://localhost:9001/static/preview.bundle.js:47100:7)
at completeRoot (http://localhost:9001/static/preview.bundle.js:48115:34)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking how draftjs-to-html is imported and exported in the reported WysiwygCustom usage, then compare that with the package's documented API. Reproduce the TypeError in the reported setup and confirm completion when converting Draft.js content to HTML no longer reports that default-export error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.