You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { serve } from "@upstash/workflow/express";
I get this error in an Express.js ESM app:
file:///XXX/node_modules/.pnpm/@upstash+workflow@0.2.1/node_modules/@upstash/workflow/chunk-ADOBNR4O.mjs:11
throw Error('Dynamic require of "' + x + '" is not supported');
^
Error: Dynamic require of "path" is not supported
The text was updated successfully, but these errors were encountered:
noahflk
changed the title
Express.js ESM Support
Failing Express.js ESM Support
Dec 7, 2024
Apologies if this is unrelated, but I am getting another ESM error while running this in AWS lambda.
I created my own handler using the serve from @upstash/workflow
ReferenceError: __dirname is not defined in ES module scope
at node_modules/.pnpm/@jimp+plugin-print@0.22.12_@jimp+custom@0.22.12_@jimp+plugin-blit@0.22.12_@jimp+custom@0.22.12_/node_modules/@jimp/plugin-print/dist/index.js (file:///xxxb/kbackend/.sst.config.1738925600291.mjs:230589:41)
The function is being bundled with esbuild before deploying, and the error shows up in the bundling
Using this import:
import { serve } from "@upstash/workflow/express";
I get this error in an Express.js ESM app:
The text was updated successfully, but these errors were encountered: