Next.js Discord

Discord Forum

CSS module linking

Answered
Havana posted this in #help-forum
Open in Discord
HavanaOP
Hello,
I cant find the issue, the documentation states it should work, or am I missing something
Failed to compile
./src/components/header/styles.module.css
ReferenceError: Cannot access uninitialized variable.

in header.tsx
import styles from './styles.module.css';

...

-header
  -header.tsx
  -styles.module.css
Answered by Havana
I resolved by backing up files like package configs src etc, deleting all files, then pasting, rebuilding docker container, bun installing again
View full answer

4 Replies

HavanaOP
getting
ReferenceError: Cannot access uninitialized variable.
Shy Albatross
show the css contents
HavanaOP
I resolved by backing up files like package configs src etc, deleting all files, then pasting, rebuilding docker container, bun installing again
Answer
HavanaOP
were very tedious 😄