Skip to content

Commit

Permalink
Seems like a wrong refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jul 5, 2024
1 parent 5dc7c1d commit 65d45ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/core/src/preview-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,11 @@ export class NextJsSharpError extends StorybookError {
super({
category: Category.FRAMEWORK_NEXTJS,
code: 1,
documentation: 'https://storybook.js.org/docs/get-started/nextjs#faq',
message: dedent`
Tried to access sharp from "${data.importType}" but it was not available. You might be missing the required dependencies.
You are importing avif images, but you don't have sharp installed.
You have to install sharp in order to use image optimization features in Next.js.
`,
});
}
Expand Down

0 comments on commit 65d45ab

Please sign in to comment.