-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing error: Unexpected token, expected "}" #334
Labels
Comments
chenxsan
added
🐛 type/bug
This is a problem
🙉 open/needs-info
This needs some more info
labels
Aug 15, 2021
JounQin
added
🙆 yes/confirmed
This is confirmed and ready to be worked on
and removed
🙉 open/needs-info
This needs some more info
labels
Aug 15, 2021
Thank you, I can reproduce it locally. Workaround temporarily: <div>
<img />
</div> |
JounQin
added a commit
that referenced
this issue
Aug 15, 2021
@chenxsan Please try yarn add -D https://pkg.csb.dev/mdx-js/eslint-mdx/commit/a2199654/eslint-plugin-mdx |
@JounQin Works fine now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Subject of the issue
Here's the content of a mdx file:
And eslint would report an error shown below:
Now if I prepend a paragraph, e.g.,
Now the error would be fixed.
Your environment
Steps to reproduce
https://github.com/webpack/webpack.js.org/pull/5298
src/content/mdx.mdx
file with below content:npx eslint src/content/mdx.mdx
Expected behaviour
No error.
Actual behaviour
An error shown.
The text was updated successfully, but these errors were encountered: