jthegedus / svelte-adapter-firebase

SvelteKit adapter for Firebase Hosting rewrites to Cloud Functions for a Svelte SSR experience

Home Page:https://github.com/jthegedus/svelte-adapter-firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: @sveltejs/kit/install-fetch replaced in @sveltejs/kit 1.0.0-next.341

pham opened this issue · comments

Describe the Bug

@sveltejs/kit/install-fetch has been replaced with @sveltejs/kit/node/polyfills in 1.0.0-next.341 (#4934).

Building against the latest @sveltejs/kit produces the error:

> Using svelte-adapter-firebase
✘ [ERROR] Could not resolve "@sveltejs/kit/install-fetch"

    node_modules/svelte-adapter-firebase/src/files/shims.js:1:27:
      1 │ import {installFetch} from '@sveltejs/kit/install-fetch';
        ╵                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  The path "./install-fetch" is not exported by package "@sveltejs/kit":

    node_modules/@sveltejs/kit/package.json:47:13:
      47 │   "exports": {
         ╵              ^

Steps to Reproduce

$ svelte-kit build

Expected Behaviour

> Using svelte-adapter-firebase
  ✔ done

svelte-adapter-firebase version

0.14.0

sveltejs/kit version

1.0.0-next.341