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

[Bug report] error plugin container is not found #34

Closed
francoisromain opened this issue Jan 10, 2021 · 1 comment
Closed

[Bug report] error plugin container is not found #34

francoisromain opened this issue Jan 10, 2021 · 1 comment

Comments

@francoisromain
Copy link

Bug report

Description

When I try to use vuepress-plugin-container, it makes an error plugin container is not found.
Not sure if this is a proper error, or just a mistake I made.

Steps to reproduce

npm i -D @vuepress/plugin-container@next && npm i -D @vuepress@next

config.js:

module.exports = {
  plugins: [
    [
      "container",
      {
        type: "full",
        before: (info) =>
          info
            ? `<div class="img-full img-full-${info}">`
            : '<div class="img-full">',
        after: "</div>",
      },
    ],
  ],
};

and then npx vuepress -> error

Expected behavior

No error when using vuepress-plugin-container

Environment info

  • Browser:
  • Output of vuepress info:
System:
    Shell: 5.1.4 - /usr/local/bin/bash
  Binaries:
    Node: 15.5.1 - /usr/local/bin/node
    Yarn: Not Found
    npm: 7.3.0 - /usr/local/bin/npm
  Utilities:
    Git: 2.30.0 - /usr/local/bin/git
  Browsers:
    Chrome: 83.0.4103.116
    Edge: Not Found
    Firefox: 84.0.2
    Safari: 13.1.2
  npmPackages:
    @vuepress/bundler-webpack:  2.0.0-alpha.15 
    @vuepress/cli:  2.0.0-alpha.15 
    @vuepress/client:  2.0.0-alpha.15 
    @vuepress/core:  2.0.0-alpha.15 
    @vuepress/markdown:  2.0.0-alpha.15 
    @vuepress/plugin-active-header-links:  2.0.0-alpha.15 
    @vuepress/plugin-back-to-top:  2.0.0-alpha.15 
    @vuepress/plugin-container:  2.0.0-alpha.15 
    @vuepress/plugin-debug:  2.0.0-alpha.15 
    @vuepress/plugin-docsearch: Not Found
    @vuepress/plugin-git:  2.0.0-alpha.15 
    @vuepress/plugin-google-analytics: Not Found
    @vuepress/plugin-medium-zoom:  2.0.0-alpha.15 
    @vuepress/plugin-nprogress:  2.0.0-alpha.15 
    @vuepress/plugin-palette-stylus:  2.0.0-alpha.15 
    @vuepress/plugin-pwa: Not Found
    @vuepress/plugin-pwa-popup: Not Found
    @vuepress/shared:  2.0.0-alpha.15 
    @vuepress/theme-default:  2.0.0-alpha.15 
    @vuepress/theme-vue: Not Found
    @vuepress/utils:  2.0.0-alpha.15 
    vuepress: ^2.0.0-alpha.15 => 2.0.0-alpha.15 
@meteorlxy
Copy link
Member

It's a mistake.

Plugin Name Shorthand
vuepress-plugin-foo foo
@org/vuepress-plugin-bar @org/bar
@vuepress/plugin-foobar @vuepress/foobar

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

2 participants