Skip to content
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

[MDX v2] "gatsby-plugin-mdx" throws an error when URLs are declared with "<http://www.example.com>" #1313

Closed
jonathanlinat opened this issue Oct 28, 2020 · 2 comments
Labels
🙋 no/question This does not need any changes

Comments

@jonathanlinat
Copy link

Your environment

  • OS: Ubuntu 20.04 LTS
  • Packages:
    • "gatsby": "2.24.88"
    • "gatsby-plugin-mdx": "1.2.51"
    • "@mdx-js/mdx": "2.0.0-next.8"
    • "@mdx-js/react": "2.0.0-next.8"
  • Env: Node v12.19.0 / NPM v6.14.8

Actual behaviour

When I declare URLs as <http://www.example.com>, then gatsby-plugin-mdx throws an error while running the onCreateNode lifecycle.

error "gatsby-plugin-mdx" threw an error while running the onCreateNode lifecycle:

Unexpected character `/` (U+002F) before local name, expected a character that can start a name, such as a letter, `$`, or `_`

image

image

@jonathanlinat jonathanlinat added 🐛 type/bug This is a problem 🙉 open/needs-info This needs some more info labels Oct 28, 2020
@wooorm
Copy link
Member

wooorm commented Oct 28, 2020

Hi Jonathan! This is expected, see: #1049 and the umbrella issue: #1041. Feel free to add there if you have more thoughts there

@wooorm wooorm closed this as completed Oct 28, 2020
@wooorm wooorm added 🙋 no/question This does not need any changes and removed 🐛 type/bug This is a problem 🙉 open/needs-info This needs some more info labels Oct 28, 2020
@jonathanlinat
Copy link
Author

Oh, okay. I didn't see that. Thanks for giving me more details. Have a nice day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes
Development

No branches or pull requests

2 participants