Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Ghost
  3. Validation error, cannot save post.", "context": "Failed to convert HTML to Mobiledoc The html-to-mobiledoc package was not installed

Validation error, cannot save post.", "context": "Failed to convert HTML to Mobiledoc The html-to-mobiledoc package was not installed

Scheduled Pinned Locked Moved Ghost
3 Posts 2 Posters 777 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Valexico
    wrote on last edited by
    #1

    Since recent update, I can't any more create new posts from HTML with API.

    Did something change in the package ?

    digi-studio 2025-03-06 at 16.16.14.png

    1 Reply Last reply
    1
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      Seems the error comes from https://github.com/TryGhost/Ghost/blob/9150e6776a2fdf7cdd3ad6322840fa13297a4ad0/ghost/core/core/server/lib/mobiledoc.js#L80 . Nothing has changed in package itself. Checking...

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        Right.. with node 22 it does not load

        root@168af0b1-79ac-45e0-84ed-54d64b54cfcf:/home/cloudron/ghost/versions/5.110.4# node
        Welcome to Node.js v22.14.0.
        Type ".help" for more information.
        > 
        Error: Could not open history file.
        REPL session history will not be persisted.
        > require('@tryghost/html-to-mobiledoc')
        Uncaught Error: Cannot find module '@tryghost/kg-parser-plugins'
        Require stack:
        - /home/cloudron/ghost/versions/5.110.4/node_modules/@tryghost/html-to-mobiledoc/lib/converter.js
        - /home/cloudron/ghost/versions/5.110.4/node_modules/@tryghost/html-to-mobiledoc/index.js
        - <repl>
            at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
            at Function._load (node:internal/modules/cjs/loader:1055:27)
            at TracingChannel.traceSync (node:diagnostics_channel:322:14)
            at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
            at Module.require (node:internal/modules/cjs/loader:1311:12)
            at require (node:internal/modules/helpers:136:16)
            at Object.<anonymous> (/home/cloudron/ghost/versions/5.110.4/node_modules/@tryghost/html-to-mobiledoc/lib/converter.js:4:31)
            at Module._compile (node:internal/modules/cjs/loader:1554:14)
            at Object..js (node:internal/modules/cjs/loader:1706:10) {
          code: 'MODULE_NOT_FOUND',
          requireStack: [
            '/home/cloudron/ghost/versions/5.110.4/node_modules/@tryghost/html-to-mobiledoc/lib/converter.js',
            '/home/cloudron/ghost/versions/5.110.4/node_modules/@tryghost/html-to-mobiledoc/index.js',
            '<repl>'
          ]
        }
        

        With node 20, it works fine:

        root@718c9254-490c-4da1-8479-d7977bc2217b:/home/cloudron/ghost/versions/5.110.4# node
        Welcome to Node.js v20.18.3.
        Type ".help" for more information.
        > 
        Error: Could not open history file.
        REPL session history will not be persisted.
        > require('@tryghost/html-to-mobiledoc')
        { toMobiledoc: [Function (anonymous)] }
        

        Will pin node in the ghost package - https://git.cloudron.io/packages/ghost-app/-/merge_requests/47

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search