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

[Feature Request] Error messages should be more clear #403

Open
zhutmost opened this issue Nov 12, 2024 · 2 comments
Open

[Feature Request] Error messages should be more clear #403

zhutmost opened this issue Nov 12, 2024 · 2 comments

Comments

@zhutmost
Copy link

First, thank the developers for your great jobs.

However, the error message from the current content-collections is very confusing.
Different errors will throw similar messages, like this:

✘ [ERROR] Cannot process MDX file with esbuild [plugin @mdx-js/esbuild]

    _mdx_bundler_entry_point-6faee968-9fed-488f-bced-6ac4c9b0ccaa.mdx:0:0:
      0 │ ## Basic Usage
        ╵ ^

... error Error: Build failed with 1 error:
_mdx_bundler_entry_point-6faee968-9fed-488f-bced-6ac4c9b0ccaa.mdx:0:0: ERROR: [plugin: @mdx-js/esbuild] Cannot process MDX file with esbuild

The actual error can be a wrong image src, or a wrong rehype/remark plugin implementation, or other bugs. The current error message is helpless.
At least, the error message should point out which plugin or which step generates it.

Again, thanks for your efforts. :D

@sdorra
Copy link
Owner

sdorra commented Nov 12, 2024

I think there is not much i can do to improve the error message. The error message comes from mdx-bundler, which i use to compile the mdx.

@baptisteArno
Copy link
Contributor

Getting this error message when adding @remark-embedder/core plugin.

I am not sure how to debug this. 🤔

There is this long lasting issue: kentcdodds/mdx-bundler#223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants