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?
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
Most helpful comment
You no longer need to add
<link rel="stylesheet" href="/_next/static/style.css" />. Try removing this line.