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

Improve error message for missing plugin .mjs file #1813

Open
agoose77 opened this issue Jan 24, 2025 · 1 comment
Open

Improve error message for missing plugin .mjs file #1813

agoose77 opened this issue Jan 24, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@agoose77
Copy link
Contributor

When running through including a new transform to mystmd with @JimMadge, we observed that the error message for a non-existent plugin file isn't clearly referring to a plugin!

@agoose77 agoose77 added the enhancement New feature or request label Jan 24, 2025
@JimMadge
Copy link

Example output,

npx myst
...
ENOENT: no such file or directory, stat './no-alt-text.mjs'

with a configuration like,

version: 1
project:
  id: ...
  github: https://github.com/...
  plugins:
    - ./no-alt-text.mjs
site:
  template: book-theme

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

No branches or pull requests

2 participants