Open CodeAndWeb opened 3 years ago
Any update? Do you need more information?
@CodeAndWeb Hi! Could you please share a sample project? Or at least the file from the video.
Sure: https://github.com/CodeAndWeb/phpstorm-mdx-bug
The project is just a quick copy of some stuff to demonstrate the bug. Does not really do anything useful...
src/pages/test.mdx
<Header
and use auto-completionThe resulting file:
import Header from "../components/header";
---
frontmatter: yes
---
# test
<Header
Any updates?
Do the examples I sent you help you solve the issue? Did anything happen here?
I am closing this issue since nobody seems to care...
Hi! We've reproduced the issue, but it is tricky to fix it, so it is still open.
Imports are added above the frontmatter block see this video:
https://www.dropbox.com/s/nqbyx9cixq29lwm/2021-04-20_17-52-45.mp4?dl=0
It's sometimes even worse: It completely deletes the frontmatter.
MDX version 211.1.2 but also had the issue with older versions. PhpStorm 2021.1.1.