pluvial / svelte-adapter-deno

A SvelteKit adapter for Deno
https://svelte-adapter-deno.deno.dev/
MIT License
325 stars 13 forks source link

Cannot read property 'minor' of undefined #1

Closed heliumbrain closed 3 years ago

heliumbrain commented 3 years ago

Hello!

Just tried using the adapter - both in my excisting svelte-kit project and in a fresh one using npm init svelte@next. Getting the same error during npm run build in both:

> Using svelte-adapter-deno
> Cannot read property 'minor' of undefined
TypeError: Cannot read property 'minor' of undefined
    at adapt (file:///Users/nilskanevad/code/svelte-kit-playground/node_modules/svelte-adapter-deno/index.js:26:14)
    at adapt (file:///Users/nilskanevad/code/svelte-kit-playground/node_modules/@sveltejs/kit/dist/chunks/index6.js:338:8)
    at file:///Users/nilskanevad/code/svelte-kit-playground/node_modules/@sveltejs/kit/dist/cli.js:894:11

My svelte-config.js looks like this:

import preprocess from 'svelte-preprocess';
import adapter from 'svelte-adapter-deno'

/** @type {import('@sveltejs/kit').Config} */
const config = {
  // Consult https://github.com/sveltejs/svelte-preprocess
  // for more information about preprocessors
  preprocess: preprocess(),

  kit: {
    adapter: adapter({
      // default options are shown
      out: 'build',
      deps: './deps.ts' // (relative to adapter-deno package)
    })
    }
};

export default config;

SvelteKit v1.0.0-next.125 Vite v2.4.2