Skip to content

bug: TypeError: 'fetch' called on an object that does not implement interface Window. #298

@Aviortheking

Description

@Aviortheking

What is Hapening

When run inside the browser, any calls like tcgdex.card.list will result in

TypeError: 'fetch' called on an object that does not implement interface Window.

Please explain what should happen

it should run the calls

Please give us a way to reproduce

class Test {
	constructor() {this.fetch = fetch }
}
await new Test().fetch('https://tcgdex.dev') // throws

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions