oelin/midjourney-client

TypeError: import_node_fetch_cookies.CookieJar is not a constructor

gkp1 opened this issue · 0 comments

gkp1 commented

node_modules\midjourney-client\index.js:12
const sessionCookieJar = new CookieJar()
^

TypeError: import_node_fetch_cookies.CookieJar is not a constructor
at midjourney (c:\Users\Raposa\Desktop\Code\Bot_Stickers\node_modules\midjourney-client\index.js:12:34)
at runTest (c:\Users\Raposa\Desktop\Code\Bot_Stickers\tests.ts:7:35)
at (c:\Users\Raposa\Desktop\Code\Bot_Stickers\tests.ts:23:1)
at Object. (c:\Users\Raposa\Desktop\Code\Bot_Stickers\tests.ts:23:9)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Object.F (C:\Users\Raposa\AppData\Roaming\npm\node_modules\tsx\node_modules@esbuild-kit\cjs-loader\dist\index.js:1:941)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)

Node.js v19.0.0

async function runTest() { const generatedImageURL = await midjourney("a cat eating a sausage"); console.log(generatedImageURL); }