Download next.js/test/development/browser-logs/fixtures/app/server-error/page.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 232 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/browser-logs/fixtures/app/server-error/page.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/browser-logs/fixtures/app/server-error/page.js
-
curl -L -o page.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/browser-logs/fixtures/app/server-error/page.js
232 Bytes
| function throwServerError() { | |
| throw new Error('Server component error in app router') | |
| } | |
| function callServerError() { | |
| throwServerError() | |
| } | |
| export default function ServerErrorPage() { | |
| callServerError() | |
| return <div></div> | |
| } | |