the code that reproduces this issue or a replay of the bug
I am trying to run the sample app - npx tsx example/imagine-ws.ts getting the error with command.ts
Describe the bug
Describe the bug
I am trying to run npx tsx example/imagine-ws.ts, getting the error
TypeError: Cannot read properties of undefined (reading 'version')
error log
TypeError: Cannot read properties of undefined (reading 'version')
at MidjourneyApi.commandData (/localpath/src/command.ts:161:24)
at MidjourneyApi.imaginePayload (/localpath/src/command.ts:87:18)
at MidjourneyApi.ImagineApi (/localpath/src/midjourne.api.ts:81:21)
at Midjourney.Imagine (/localpath/src/midjourney.ts:73:24)
at main (/localpath/imagine-ws.ts:22:19)
the code that reproduces this issue or a replay of the bug
I am trying to run the sample app - npx tsx example/imagine-ws.ts getting the error with command.ts
Describe the bug
Describe the bug I am trying to run npx tsx example/imagine-ws.ts, getting the error TypeError: Cannot read properties of undefined (reading 'version')
error log
TypeError: Cannot read properties of undefined (reading 'version') at MidjourneyApi.commandData (/localpath/src/command.ts:161:24) at MidjourneyApi.imaginePayload (/localpath/src/command.ts:87:18) at MidjourneyApi.ImagineApi (/localpath/src/midjourne.api.ts:81:21) at Midjourney.Imagine (/localpath/src/midjourney.ts:73:24) at main (/localpath/imagine-ws.ts:22:19)