external css file
Unanswered
Cuban Crocodile posted this in #help-forum
Cuban CrocodileOP
I have created styles.css file app folder and imported, however getting an below error
unable to resolve relative "./styles.css"
It was not possible to find the requested file.
Parsed request as written in source code: relative "./styles.css"
unable to resolve relative "./styles.css"
It was not possible to find the requested file.
Parsed request as written in source code: relative "./styles.css"
9 Replies
Show the import statement
Cuban CrocodileOP
import "./styles.css";
@Clown Show the import statement
Cuban CrocodileOP
That's not how you import a css module
https://nextjs.org/docs/app/building-your-application/styling/css-modules
https://nextjs.org/docs/app/building-your-application/styling/css-modules
Technically that style of importing should still work
But it might be having issues due to the file extension or something
Try using a jsx file extension
Cuban CrocodileOP
I am trying global styles. but seems its not working
@Clown Try using a jsx file extension
Cuban CrocodileOP
renamed it. but still facing the same issue