Download next.js/packages/next/src/shared/lib/invariant-error.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 268 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/shared/lib/invariant-error.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/shared/lib/invariant-error.ts
-
curl -L -o invariant-error.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/shared/lib/invariant-error.ts
268 Bytes
| export class InvariantError extends Error { | |
| constructor(message: string, options?: ErrorOptions) { | |
| super( | |
| `Invariant: ${message.endsWith('.') ? message : message + '.'} This is a bug in Next.js.`, | |
| options | |
| ) | |
| this.name = 'InvariantError' | |
| } | |
| } | |