NodeBB/nodebb-plugin-markdown

error in rules.image

barisusakli opened this issue · 0 comments

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null
at validateString (internal/validators.js:124:11)
at Object.basename (path.js:1156:5)
at Object.parser.renderer.rules.image (/home/nodebb/nodebb/node_modules/nodebb-plugin-markdown/index.js:354:26)
at Renderer.renderInline (/home/nodebb/nodebb/node_modules/markdown-it/lib/renderer.js:275:28)
at Renderer.render (/home/nodebb/nodebb/node_modules/markdown-it/lib/renderer.js:330:22)
at MarkdownIt.render (/home/nodebb/nodebb/node_modules/markdown-it/lib/index.js:544:24)
at Object.parsePost [as method] (/home/nodebb/nodebb/node_modules/nodebb-plugin-markdown/index.js:163:35)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async fireMethod (/home/nodebb/nodebb/src/plugins/hooks.js:128:11)