warn Attempted import error: './header.module.scss'
does not contain a default export
(imported as 'headerStyles'). import headerStyle from './header.module.scss';

Change to

import * as headerStyle from './header.module.scss';

<Link className={headerStyle.links} to="/">Home</Link>
Where header.module.scss file is looks like below
.links {
color: red;
}