Next Build Webpack Error - node:async_hooks
Unanswered
Yellow Warbler posted this in #help-forum
Yellow WarblerOP
> dotenv -e ../../.env -- next build
│
│ ▲ Next.js 15.1.6
│
│ Creating an optimized production build ...
│ Failed to compile.
│
│ node:async_hooks
│ 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.Import trace
Import trace for requested module:
│ node:async_hooks
│ ../../node_modules/inngest/components/execution/als.js
│ ../../node_modules/inngest/components/execution/v1.js
│ ../../node_modules/inngest/components/InngestFunction.js
│ ../../node_modules/inngest/components/Inngest.js
│ ../../node_modules/inngest/index.js
│ ../../packages/lib/src/functions/email-send.ts
│ ../../packages/lib/src/functions/index.ts
│ ../../packages/lib/src/index.ts
│ ./features/dashboard/components/usage.tsxusage.tsx looks like this:export function Usage() {
const { data } = api.user.quota.useQuery();
if (!data) return;
return (
<Flex justify="between" align="center">
<Heading size="1">Usage</Heading>
<Text size="1" color="gray">
{data.usage}/{MAX_EMAIL_SENDS[data.user.subscription]}
</Text>
</Flex>
);
}"inngest": "^3.30.0",
"next": "^15.1.6",