Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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