Cannot convert undefined or null to object
Open
Nobody has claimed this yet.
needs:info
- Dominant language
- JavaScript
- Stars
- 134
- Forks
- 87
- Avg merge
- 12m
- Merged PRs (30d)
- 25
Description
Hi there,
I am using this '@tryghost/html-to-mobiledoc' plugin in React APP for converting HTML to mobiledoc, it is a great tool, and its working fine in development mode
but
in production mode (react build) it creates the error 'Cannot convert undefined or null to object' .
Technical details:
"react": "^17.0.2",
"@tryghost/html-to-mobiledoc": "^1.8.6",

Contributor guide
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
No source file, test, or reproducible input is identified. Start by reproducing the failure with React 17, @tryghost/html-to-mobiledoc 1.8.6, and a production build, then compare it with development mode; done means the same HTML conversion succeeds in both modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100