Module not found: Error: Can't resolve '@theme/DocItemFooter'

See original GitHub issue

Describe the bug

I’m using Docusaurus 2.0.0-rc.1 and getting this error:

Module not found: Error: Can’t resolve ‘@theme/DocItemFooter’ in node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ApiItem’.

My plugin section looks like this:

      '@docusaurus/plugin-content-docs',
      {
        path: 'docs/api/petstore',
        routeBasePath: '/api/petstore',
        id: 'apiPetstore',
        sidebarPath: require.resolve('./sidebars/petstore.js'),
        sidebarCollapsible: false,
        docLayoutComponent: "@theme/DocPage",
        docItemComponent: "@theme/ApiItem",
      },
    ],

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ahmad-anilitycommented, Jul 20, 2022

Apologies @sserrata, it must have been my node_module folder. After removing and installing again, it works now. Also sharing the package.json:

package.json dependency is

  "dependencies": {
    "@docusaurus/core": "^2.0.0-rc.1",
    "@docusaurus/preset-classic": "^2.0.0-rc.1",
    "@mdx-js/react": "^1.6.22",
    "clsx": "^1.1.1",
    "docusaurus-plugin-openapi-docs": "^1.1.1",
    "docusaurus-theme-openapi-docs": "^1.1.1",
    "prism-react-renderer": "^1.3.3",
    "react": "^17.0.2",
    "react-dom": "^17.0.2"
  },
  "devDependencies": {
    "@docusaurus/module-type-aliases": "^2.0.0-rc.1"
  },

0reactions
sserratacommented, Jul 20, 2022

Support for 2.0.0-rc.1 introduced in v1.1.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Error: Can't resolve 'util' in webpack
The main problem is with Webpack 5. It doesn't preload the polyfill of Node.js. I see that this issue can help you.
Read more >
Module not found: Error: Can't resolve... · Issue #88 - GitHub
I am getting the following error after running yarn test. ERROR in ./test/components/FabMenuItemTest.js Module not found: Error: Can't ...
Read more >
How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Your browser can't play this video. ... How to fix ' Module not found : Can't resolve 'http' in ...' error with FCL...
Read more >
Can't resolve 'SimpleBar' Error while stencil start
I'm using Covent+Garden-2.3.1 theme, so i download theme from store and try to do stencil start i get below error. Module not found:...
Read more >
Module not found: Error: Can't resolve 'net' [Solved] | bobbyhadz
The error Module not found: Error: Can't resolve 'net' occurs because there has been a breaking change in Webpack version 5. To solve...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found