Duplicate css classes from page.scss and layout.scss when sharing component.
Unanswered
Transvaal lion posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Transvaal lionOP
I'm now trying NextJS14 but I encounted this issue, I noticed when developing login layout, I noticed my styles are calling twice.
I have this code in my layout.jsx and page.jsx
So when I tried to put
It's even the same when I did production build. (npm run build / start)
Any fix for this, am I doing something wrong?
It should only call once.
I have this code in my layout.jsx and page.jsx
import styles from '@/styles/auth.module.scss';
So when I tried to put
<div className={styles['field-row']}>
and checked my style in inspect element. It shows twice.It's even the same when I did production build. (npm run build / start)
Any fix for this, am I doing something wrong?
It should only call once.
![Image](https://cdn.discordapp.com/attachments/1217483250818351174/1217483250998575136/image.png?ex=660430a2&is=65f1bba2&hm=7e57f80474715cf663b6fb988e336d2a37160de0440a33c73080a4f38f3b5eb7&)
1 Reply
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Transvaal lionOP