saltyshiomix / ark

An easiest authentication system on top of NestJS, TypeORM, NEXT.js(v9.3) and Material UI(v4).
MIT License
259 stars 17 forks source link

Missing component: <Html /> #14

Open AaronNGray opened 3 years ago

AaronNGray commented 3 years ago

Not sure if there are one or two issues here :-

event - compiled successfully
Material-UI: the createMuiTheme function was renamed to createTheme.

You should use `import { createTheme } from '@material-ui/core/styles'`
Warning: viewport meta tags should not be used in _document.js's <Head>. https://err.sh/next.js/no-document-viewport-meta
warn  - Your custom Document (pages/_document) did not render all the required subcomponent.
Missing component: <Html />
Read how to fix here: https://err.sh/next.js/missing-document-component
yourleader commented 3 years ago

I fix the problem add this

import React from 'react'; import Document, { Html, Head, Main, NextScript } from 'next/document'; import { ServerStyleSheets } from '@material-ui/styles';

class MyDocument extends Document { render() { return (

);

} }