Skip to content

'this.compose' is undefined #126

@cicklolwut

Description

@cicklolwut

Hello, I get the following both when running 1.1.8 in docker, and bare metal:

bun run start
$ bun src/index.ts
13 |   }) {
14 |     super({
15 |       ...agentOpts
16 |     });
17 |     if (cookieOpts != null) {
18 |       return this.compose((0, _create_cookie_interceptor.createCookieInterceptor)(cookieOpts));
                       ^
TypeError: this.compose is not a function. (In 'this.compose(_create_cookie_interceptor.createCookieInterceptor(cookieOpts))', 'this.compose' is undefined)
      at new CookieAgent (/mnt/user/appdata/StreamBot/node_modules/http-cookie-agent/dist/undici/cookie_agent.js:18:19)
      at <anonymous> (/mnt/user/appdata/StreamBot/node_modules/@distube/ytdl-core/lib/agent.js:77:17)
      at <anonymous> (/mnt/user/appdata/StreamBot/node_modules/@distube/ytdl-core/lib/agent.js:108:24)
      at <anonymous> (/mnt/user/appdata/StreamBot/node_modules/@distube/ytdl-core/lib/utils.js:3:7)
      at <anonymous> (/mnt/user/appdata/StreamBot/node_modules/@distube/ytdl-core/lib/info.js:4:7)
      at <anonymous> (/mnt/user/appdata/StreamBot/node_modules/@distube/ytdl-core/lib/index.js:2:7)

Bun v1.2.12 (Linux x64)
error: script "start" exited with code 1

I was thinking it might have been a ytdl-core problem but I'm not seeing any related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions