From 65d45aba8870039215fb652e156e172a52be09cd Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Sat, 6 Jul 2024 00:19:26 +0200 Subject: [PATCH] Seems like a wrong refactor --- code/core/src/preview-errors.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/core/src/preview-errors.ts b/code/core/src/preview-errors.ts index 8de51e27d36c..c3154778e017 100644 --- a/code/core/src/preview-errors.ts +++ b/code/core/src/preview-errors.ts @@ -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. `, }); }