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

Getting theme error while useing @docusaurus/preset-classic with docusaurus-plugin-openapi in plugins #248

Open
dmonark opened this issue Jun 3, 2023 · 2 comments

Comments

@dmonark
Copy link

dmonark commented Jun 3, 2023

I want to use @docusaurus/preset-classic in presets and docusaurus-plugin-openapi in plugins. When i'm running them getting below error

Module not found: Error: Can't resolve '@theme/ApiItem' in '/Users/dedakiya.monark/Desktop/OCEN-Documentation/.docusaurus'
Module not found: Error: Can't resolve '@theme/ApiItem' in '/Users/dedakiya.monark/Desktop/OCEN-Documentation/.docusaurus'
Module not found: Error: Can't resolve '@theme/ApiPage' in '/Users/dedakiya.monark/Desktop/OCEN-Documentation/.docusaurus'
Module not found: Error: Can't resolve '@theme/ApiPage' in '/Users/dedakiya.monark/Desktop/OCEN-Documentation/.docusaurus'
client (webpack 5.81.0) compiled with 4 errors

presents and plugins are as below

 presets: [
    [
      '@docusaurus/preset-classic',
      /** @type {import('@docusaurus/preset-classic').Options} */
      ({
        docs: {
          sidebarPath: require.resolve('./sidebars.js'),
          // Please change this to your repo.
          // Remove this to remove the "edit this page" links.
          editUrl:
            'https://github.com/',
        },
        blog: {
          showReadingTime: true,
          // Please change this to your repo.
          // Remove this to remove the "edit this page" links.
          editUrl:
            'https://github.com/',
        },
        theme: {
          customCss: require.resolve('./src/css/custom.css'),
        },
      }),
    ]
  ],
  plugins: [
    [
      "docusaurus-plugin-openapi",
      {
        id: "multi-spec",
        path: "apis",
        routeBasePath: "apis",
      },
    ],
  ]
@filipamb
Copy link

filipamb commented Aug 1, 2023

Same problem here. Any idea how to fix that?

@chenzhenjia
Copy link

me too

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

3 participants