Skip to content

Svelte Fetch is not included on the Firebase build #37

@nielsvandermolen

Description

@nielsvandermolen

Describe the bug
The todo page does not work when deploying the demo example project on Firebase with this adapter. It will throw: ReferenceError: fetch is not defined

To Reproduce
deploy the demo application on Firebase and go to the todos page

Expected behavior

That the fetch calls to the external API would work and no errors are thrown.

Screenshots

Additional context

There is some recent work in the official adapters to support Fetch
sveltejs/kit#1066
sveltejs/kit#1091

I am not sure if the solution is to ``import '@sveltejs/kit/install-fetch' or that we have to do something with node-fetch
sveltejs/kit#618 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions