-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Description
import Document, { Head, Main, NextScript } from 'next/document'
import flush from 'styled-jsx/server'
##ALERT###
import flush from 'styled-jsx/server' With the new npm 5.2.0 something changed because the module gives an error of not found and I started to look and npm change something to review please
#########
export default class MyDocument extends Document {
static getInitialProps ({ renderPage }) {
const {html, head, errorHtml, chunks} = renderPage()
const styles = flush()
return { html, head, errorHtml, chunks, styles }
}
Metadata
Metadata
Assignees
Labels
No labels