draftToHtml is not function
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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