Skip to content

"plugin not defined" when remark-hugo-shortcodes configured as remark-cli plugin #2

Description

@jstirnaman

Steps to reproduce:

  1. Install:
  • Edit remark@12.0.1
  • remark-cli@9.0.0
  • remark-hugo-shortcodes@0.2.12
  1. configure remark-hugo-shortcodes as a plugin in .remarkrc:
    { "plugins": [ "preset-lint-consistent", "preset-lint-recommended", "preset-lint-markdown-style-guide", ["remark-lint-no-undefined-references", false], ["remark-frontmatter", ["yaml", "toml"]], "remark-hugo-shortcodes" ] }
  2. run remark --output -- [filepath]

Produces the following error:

1:1 error Error: Cannot parse file .remarkrc
Error: Expected preset or plugin, not undefined, at node_modules/remark-hugo-shortcodes/dist/index.js
at FormattedError (/Users/jasonstirnaman/github/docs-v2/node_modules/fault/index.js:29:12)
at onparse (/Users/jasonstirnaman/github/docs-v2/node_modules/unified-engine/lib/find-up.js:152:13)
at done (/Users/jasonstirnaman/github/docs-v2/node_modules
/trough/wrap.js:55:16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions