atomicpages / docusaurus-plugin-react-docgen-typescript

A tiny plugin that integrates react-docgen-typescript with docusaurus
MIT License
18 stars 7 forks source link

[Issue] Docusaurus was unable to resolve the "docusaurus-plugin-react-docgen" plugin. #19

Closed caseykhuc closed 1 year ago

caseykhuc commented 1 year ago

After adding plugin config in docusaurus.config.js, docusaurus start throw this error:

Error: Docusaurus was unable to resolve the "docusaurus-plugin-react-docgen" plugin. Make sure one of the following packages are installed:
- docusaurus-plugin-react-docgen
- @docusaurus/plugin-docusaurus-plugin-react-docgen
- docusaurus-plugin-docusaurus-plugin-react-docgen

Config used:

{
  plugins: [
    [
      "docusaurus-plugin-react-docgen",
      {
        src: [path.join(__dirname, "../../aha-react/src/components")],
        route: {
          path: "/docs/components",
          component: require.resolve("./src/components/PropTable.tsx"),
          exact: true,
        },
      },
    ],
  ]
}

I also went to check node_modules and the package is already installed 🤔 Any clues to resolve this? Thanks in advance! image