rodbs
01/07/2024, 4:31 PM{
'$$mdtype': 'Tag',
name: 'Counter',
attributes: [Object],
children: []
}
But on deploying to Pages I get an error
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
and the console:
{
'$$mdtype': 'Tag',
name: '_R',
attributes: [Object],
children: []
}
So it's like the render is working locally and not online.
I've spotted the 'rendering error' in the transform
method:
const ast = parse(markdown)
const config = {
tags: { counter, },
}
return transform(ast, config)
`
What else can I do to debug it? Is the bug in Worker backend?? (because Markdoc works ok locally)rodbs
01/08/2024, 4:01 PM