vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.17k stars 2.12k forks source link

Internal server error: Import error in the demo container. #1990

Closed Norn3 closed 1 year ago

Norn3 commented 1 year ago

Describe the bug

When I want to import, I find that it will report an error. image I see that the document is imported in this way. image Is there anything wrong?Why doesn't it happen when I import from vue?

Reproduction

After I created the project based on the document, I only installed 'vitepress-theme-demoblock'. These are my configurations: image image And then it happended.

Expected behavior

I was about to import some custom objects in the demo, but I found that even useData cannot be imported.

System Info

[vitepress] Internal server error: Transform failed with 1 error:
E:/Draculabo/min-vitepress/vitepress-starter/docs/components/test.md:22:7: ERROR: Unexpected "{"

Additional context

No response

Validations

brc-dd commented 1 year ago

It's an issue with that plugin/theme that you're using. Not vitepress itself.