TryGhost / TryGhost/SDK

Cannot convert undefined or null to object

Open
#437 1 comment 0 reactions 0 assignees View on GitHub

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",

image

Contributor guide

Open the contributing guide

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.