Next.js Discord

Discord Forum

Stuck with a very BS invisible issue in nextjs and idk what to do about this.

Unanswered
rex1410 posted this in #help-forum
Open in Discord
Import trace for requested module:
./src/app/globals.css
 ⨯ ./src/app/globals.css:4:0
Module not found: Can't resolve './${data}'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./src/app/globals.css


I get this error on Yarn dev, on a nextjs project i initiated yesterday. With tailwind CSS. Everything worked till today afternoon, when I get this error.

Fun fact, the line number 4 on globals.css is an empty line 😄

So yeah just wtf am i supposed to do here?

2 Replies

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
}

Initial few lines of globals.css
Have you tried purging the .next folder and running the server again?