When Imper does not rely on any other components from my own project, this works. However, when I import other components inside Imper (that are not provided as globals), I get this error:
Server Error
SyntaxError: Unexpected token '<'
This error happened while generating the page. Any console logs will be displayed in the terminal window.
I am not sure whether this is intended or what I am doing wrong here exactly? I would've expected mdx-bundler to automatically import all other components that my Imper component relies on?
I do know that providing those components as globals fixes this problem, but I do not want to have a ton of globals that I might not re-use a lot.
mdx-bundler
version: 9.2.1node
version: 16.19.0npm
version: 8.19.3What you did:
I am importing a component into my mdx blog post:
When
Imper
does not rely on any other components from my own project, this works. However, when I import other components inside Imper (that are not provided as globals), I get this error:I am not sure whether this is intended or what I am doing wrong here exactly? I would've expected
mdx-bundler
to automatically import all other components that myImper
component relies on?I do know that providing those components as globals fixes this problem, but I do not want to have a ton of globals that I might not re-use a lot.