Scaffolded pages don't import scaffold.css

I just scaffolded an entity but my scaffed pages don’t have the import for scaffold.css, so they look “plain”:


datasource db {
  provider = "sqlite"
  url      = env("DATABASE_URL")

generator client {
  provider      = "prisma-client-js"
  binaryTargets = "native"

model Restaurant {
  id        String   @id @default(cuid())
  createdAt DateTime @default(now())
  name      String
  address   String
  hours     String
  lat       Float
  lon       Float

Are there any other files I can show you that would help diagnose, or is this a known thing?


Is import ‘./scaffold.css’ in the App.(js)(tsx) file and does the scaffold.css file exist under the web directory?

Thanks, it wasn’t, adding it in did the trick.

I’ve seen that line be in app.js on another project on another machine, any idea why it would be missed during scaffolding? File locked or something?

Cheers :slight_smile:

Not sure. Might be worth trying to replicate on a new repo. Or check the git history to see if it was in place during the last scaffold.

1 Like