From 668a65a73fcd4f9483e77c0d9abec3b59f51e481 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Fri, 8 Sep 2023 16:34:05 +0200 Subject: [PATCH] fix typo --- .../font/webpack/loader/google/get-font-face-declarations.ts | 4 ++-- code/lib/core-events/src/errors/server-errors.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/frameworks/nextjs/src/font/webpack/loader/google/get-font-face-declarations.ts b/code/frameworks/nextjs/src/font/webpack/loader/google/get-font-face-declarations.ts index 396de4fdd5ac..0f8bfb1957f8 100644 --- a/code/frameworks/nextjs/src/font/webpack/loader/google/get-font-face-declarations.ts +++ b/code/frameworks/nextjs/src/font/webpack/loader/google/get-font-face-declarations.ts @@ -2,7 +2,7 @@ // @ts-expect-error import loaderUtils from 'next/dist/compiled/loader-utils3'; import { - GoggleFontsDownloadError, + GoogleFontsDownloadError, GoogleFontsLoadingError, } from '@storybook/core-events/server-errors'; import type { LoaderOptions } from '../types'; @@ -37,7 +37,7 @@ export async function getFontFaceDeclarations(options: LoaderOptions) { cssCache.delete(url); } if (fontFaceCSS === null) { - throw new GoggleFontsDownloadError({ + throw new GoogleFontsDownloadError({ fontFamily, url, }); diff --git a/code/lib/core-events/src/errors/server-errors.ts b/code/lib/core-events/src/errors/server-errors.ts index 27b9250b8204..d75f33ff7277 100644 --- a/code/lib/core-events/src/errors/server-errors.ts +++ b/code/lib/core-events/src/errors/server-errors.ts @@ -280,7 +280,7 @@ export class AngularLegacyBuildOptionsError extends StorybookError { } } -export class GoggleFontsDownloadError extends StorybookError { +export class GoogleFontsDownloadError extends StorybookError { readonly category = Category.FRAMEWORK_NEXTJS; readonly code = 1;