mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
26 lines
766 B
JavaScript
26 lines
766 B
JavaScript
const CompileErrorTrace = require('../components/CompileErrorTrace');
|
|
const PageHeader = require('../components/PageHeader');
|
|
const Spacer = require('../components/Spacer');
|
|
|
|
/**
|
|
* @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;
|