EpicWerf
EpicWerf
PPrisma
Created by EpicWerf on 4/23/2025 in #help-and-questions
Module build failed: UnhandledSchemeError: Reading from "node:async_hooks" is not handled by plugins
I'm on a Next.js 14 app and just switched from 6.5.0 to 6.6.0, but now I'm seeing the error Module build failed: UnhandledSchemeError: Reading from "node:async_hooks" is not handled by plugins (Unhandled scheme). Webpack supports "data:" and "file:" URIs by default. You may need an additional plugin to handle "node:" URIs. Upgrading prisma is the only thing that changed. the changes i made were: 1. adding the output and module formate to the prisma schema generator client { provider = "prisma-client" output = "./generated" moduleFormat = "esm" } 2. Specifying my schema in my package.json "prisma": { "schema": "./src/prisma/schema.prisma" }, 3. changing the prisma instance to use the generated client import { PrismaClient } from "@/prisma/generated/client"; 4. changing all imports in my app to use the newly generated client OLD: import type { company } from "@prisma/client"; NEW: import type { company } from "@/prisma/generated/client"; I'm assuming that I was supposed to do #4, correct? i haven't seen any documention specifically stating to do that, but I don't see why I wouldn't Any other reason I'd be seeing the error above?
5 replies