Download next.js/packages/next/src/next-devtools/dev-overlay.shim.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/next-devtools/dev-overlay.shim.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/next-devtools/dev-overlay.shim.ts
-
curl -L -o dev-overlay.shim.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/next-devtools/dev-overlay.shim.ts
605 Bytes
| export function renderAppDevOverlay() { | |
| throw new Error( | |
| "Next DevTools: Can't render in this environment. This is a bug in Next.js" | |
| ) | |
| } | |
| export function renderPagesDevOverlay() { | |
| throw new Error( | |
| "Next DevTools: Can't render in this environment. This is a bug in Next.js" | |
| ) | |
| } | |
| // TODO: Extract into separate functions that are imported | |
| export const dispatcher = new Proxy( | |
| {}, | |
| { | |
| get: (_, prop) => { | |
| return () => { | |
| throw new Error( | |
| `Next DevTools: Can't dispatch ${String(prop)} in this environment. This is a bug in Next.js` | |
| ) | |
| } | |
| }, | |
| } | |
| ) | |