redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Module not found: Can't resolve 'yaml'

Open vickyRathee opened this issue 1 month ago • 0 comments

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

vickyRathee avatar Dec 03 '25 07:12 vickyRathee