Validation error, cannot save post.", "context": "Failed to convert HTML to Mobiledoc The html-to-mobiledoc package was not installed
-
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