Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@pmmmwh /react-refresh-webpack-plugin /overlay /containers /CompileErrorContainer.js
Download frontend/node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/containers/CompileErrorContainer.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 775 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40pmmmwh/react-refresh-webpack-plugin/overlay/containers/CompileErrorContainer.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/containers/CompileErrorContainer.js
-
curl -L -o CompileErrorContainer.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40pmmmwh/react-refresh-webpack-plugin/overlay/containers/CompileErrorContainer.js
775 Bytes
| const CompileErrorTrace = require('../components/CompileErrorTrace.js'); | |
| const PageHeader = require('../components/PageHeader.js'); | |
| const Spacer = require('../components/Spacer.js'); | |
| /** | |
| * @typedef {Object} CompileErrorContainerProps | |
| * @property {string} errorMessage | |
| */ | |
| /** | |
| * A container to render Webpack compilation error messages with source trace. | |
| * @param {Document} document | |
| * @param {HTMLElement} root | |
| * @param {CompileErrorContainerProps} props | |
| * @returns {void} | |
| */ | |
| function CompileErrorContainer(document, root, props) { | |
| PageHeader(document, root, { | |
| title: 'Failed to compile.', | |
| }); | |
| CompileErrorTrace(document, root, { errorMessage: props.errorMessage }); | |
| Spacer(document, root, { space: '1rem' }); | |
| } | |
| module.exports = CompileErrorContainer; | |