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

Markdown Parser #4

Open
danvega opened this issue Jun 1, 2020 · 0 comments
Open

Markdown Parser #4

danvega opened this issue Jun 1, 2020 · 0 comments

Comments

@danvega
Copy link

danvega commented Jun 1, 2020

I'm missing something here... I am using the markdown parser

const markdown = prettier.format(`---\n${yaml}\n---\n`, {
  parser: "markdown",
  singleQuote: true,
});

The code compiles but when it runs I get the following error

error: Uncaught Error: Couldn't resolve parser "markdown". Parsers must be explicitly added to the standalone bundle.
        throw new ConfigError$1("Couldn't resolve parser \"".concat(opts.parser, "\". Parsers must be explicitly added to the standalone bundle."));
              ^
    at resolveParser (https://denolib.com/denolib/prettier/vendor/standalone.js:12039:15)
    at normalize$1 (https://denolib.com/denolib/prettier/vendor/standalone.js:12127:18)
    at formatWithCursor (https://denolib.com/denolib/prettier/vendor/standalone.js:15857:14)
    at https://denolib.com/denolib/prettier/vendor/standalone.js:31804:17
    at Object.format (https://denolib.com/denolib/prettier/vendor/standalone.js:31812:14)
    at file:///Users/vega/dev/danvega/danvega-dev/scripts/NewPost.ts:47:27
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

1 participant