Skip to content

Module not found: Can't resolve 'yaml' #2754

@vickyRathee

Description

@vickyRathee

Getting error on next project: Module not found: Can't resolve 'yaml'

import { RedocStandalone } from 'redoc';

export default function RedocComponent({ apiSpecs }: { apiSpecs: any }) {
return (
    <RedocStandalone
      spec={apiSpecs}
      options={{
        theme: theme === 'dark' ? redocDarkTheme : redocLightTheme,
        hideDownloadButton: true,
        expandResponses: '200,201',
        requiredPropsFirst: true,
        sortPropsAlphabetically: true,
        showObjectSchemaExamples: true,
        nativeScrollbars: true,
        pathInMiddlePanel: true,
      }}
    />
  );
}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions