UrielCh / midjourney-client

midjourney-client in deno

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

latest error..

lordmen99 opened this issue · comments

node:internal/process/esm_loader:108
internalBinding('errors').triggerUncaughtException(
^

Error: Transform failed with 1 error:
/Users/macpro/Downloads/api-key-nodejs-master/coba.ts:5:12: ERROR: Top-level await is currently not supported with the "cjs" output format
at failureErrorWithLog (/Users/macpro/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:1636:15)
at /Users/macpro/.npm/_npx/fd45a72a545557e9/node_modules/esbuild/lib/main.js:837:29

its use command /imagine with latest version

I do not have the file named coba.ts can not help.

thats file same code from ur example and frontpage this source app

Please try to ask this question to chatGPT, It will solve your issue, I can not teach you how to code.

"top-level await" is a modern javascript feature. you really need to be able to solve that alone.

give sample after imagine can get progress in log