Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

next@7 _next/static/style.css is not found with next-sass #290

Closed
Jungwoo-An opened this issue Sep 27, 2018 · 4 comments
Closed

next@7 _next/static/style.css is not found with next-sass #290

Jungwoo-An opened this issue Sep 27, 2018 · 4 comments

Comments

@Jungwoo-An
Copy link
Contributor

Jungwoo-An commented Sep 27, 2018

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?

@kachkaev
Copy link
Contributor

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

@Jungwoo-An
Copy link
Contributor Author

@timneutkens
Copy link
Member

Feel free to update the readme.

@Jungwoo-An
Copy link
Contributor Author

👍 Thanks for @kachkaev @timneutkens

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants