No loader is configured for ".wasm"

I'm getting this error doing the neondatabase connection with prisma in the Cloudflare Wrangler deploy

generator client {
  provider = "prisma-client-js"
  previewFeatures = ["driverAdapters"]
  engineType      = "wasm"
}

generator pothos {
  provider = "prisma-pothos-types"
}

generator pothosCrud {
  provider            = "prisma-generator-pothos-codegen"
  generatorConfigPath = "./pothos.config.js"
}

datasource db {
  provider  = "postgresql"
  url       = env("DATABASE_URL")
  // If you want to use Prisma Migrate, you will need to manually create a shadow database
  // https://neon.tech/docs/guides/prisma-migrate#configure-a-shadow-database-for-prisma-migrate
  // make sure to append ?connect_timeout=10 to the connection string
  // shadowDatabaseUrl = env(“CONTENT_SHADOW_DATABASE_URL”)
}
Was this page helpful?