Next.js Discord

Discord Forum

Build Error

Answered
Exotic Shorthair posted this in #help-forum
Open in Discord
Original message was deleted.
Answered by Jboncz
import "@/styles/globals.css"

try using this.
View full answer

5 Replies

Can you provide a screenshot of where your globals.css is located?
import "@/styles/globals.css"

try using this.
Answer
@Jboncz `import "@/styles/globals.css"` try using this.
Exotic Shorthair
it worked, but can you explain why?
import '@styles/globals.css';
used to work for me well
@Exotic Shorthair for archival purposes please avoid deleting the original question unless strictly necessary, such as when the question contains secrets (that you should have never posted in the first place)
@Exotic Shorthair it worked, but can you explain why? js import '@styles/globals.css'; used to work for me well
this is because in your tsconfig you have @/* which only matches paths starting with @/