Next-plugins: next@7 _next/static/style.css is not found with next-sass

Created on 27 Sep 2018  路  4Comments  路  Source: vercel/next-plugins

GET http://localhost:3000/_next/static/style.css net::ERR_ABORTED 404 (Not Found)
// _document.tsx
import * as React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';

export default class extends Document {
  render() {
    return (
      <html lang="ko">
        <Head>
          <link rel="stylesheet" href="/_next/static/style.css" />
        </Head>
        <body>
          <Main />
          <NextScript />
        </body>
      </html>
    );
  }
}

How solve this problem?

Most helpful comment

You no longer need to add <link rel="stylesheet" href="/_next/static/style.css" />. Try removing this line.

All 4 comments

You no longer need to add <link rel="stylesheet" href="/_next/static/style.css" />. Try removing this line.

@kachkaev 馃憤

Then what is this?

https://github.com/zeit/next-plugins/tree/master/packages/next-sass#with-sass-loader-options

Feel free to update the readme.

馃憤 Thanks for @kachkaev @timneutkens

Was this page helpful?
0 / 5 - 0 ratings