Skip to content

Error in NPM 5.2.0 with styled-jsx #2538

@ghost

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions