Download next.js/packages/font/src/next-font-error.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/font/src/next-font-error.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/font/src/next-font-error.ts
-
curl -L -o next-font-error.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/font/src/next-font-error.ts
242 Bytes
| /** | |
| * Throw NextFontError error. Used by the WellKnownErrorsPlugin to format errors thrown by next/font. | |
| */ | |
| export function nextFontError(message: string): never { | |
| const err = new Error(message) | |
| err.name = 'NextFontError' | |
| throw err | |
| } | |