question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SvelteKit update breaks deno-adapter

See original GitHub issue

`[WARNING] Import “dirname” will always be undefined because the file “.svelte-kit/deno/deps.ts” has no exports [import-is-undefined]

.svelte-kit/deno/index.js:1:9:
  1 │ import { dirname, fromFileUrl, join, exists, Application } from './deps.ts';
    ╵          ~~~~~~~

▲ [WARNING] Import “fromFileUrl” will always be undefined because the file “.svelte-kit/deno/deps.ts” has no exports [import-is-undefined]

.svelte-kit/deno/index.js:1:18:
  1 │ import { dirname, fromFileUrl, join, exists, Application } from './deps.ts';

.svelte-kit/deno/index.js:1:37:
  1 │ import { dirname, fromFileUrl, join, exists, Application } from './deps.ts';
    ╵                                      ~~~~~~

▲ [WARNING] Import “Application” will always be undefined because the file “.svelte-kit/deno/deps.ts” has no exports [import-is-undefined]

.svelte-kit/deno/index.js:1:45:
  1 │ import { dirname, fromFileUrl, join, exists, Application } from './deps.ts';
    ╵                                              ~~~~~~~~~~~

PS C:\Users\Administrator\Desktop\x> pnpm run deno

x@ deno C:\Users\Administrator\Desktop\x deno run --allow-env --allow-read --allow-net xbuild_deno/index.js

error: Uncaught TypeError: (void 0) is not a function var __dirname = (void 0)((void 0)(import.meta.url)); ^ at file:///C:/Users/Administrator/Desktop/x/xbuild_deno/index.js:3540:34  ELIFECYCLE  Command failed with exit code 1. `

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jpaquimcommented, Sep 20, 2022

Hey @xkpx64 and @bradleyg can you check if you still have the issue after updating to the latest version of this package? I updated it to work with latest SvelteKit (and other deps as well), but let me know if you’re still having the same issue.

1reaction
jpaquimcommented, Sep 13, 2022

@bradleyg Thanks for giving it a try, I’ll take a look this week, I’ve been waiting for SvelteKit and Deno to stabilize a bit further, given the amount of changes in the last couple of months.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pluvial/svelte-adapter-deno: A SvelteKit adapter for ... - GitHub
Adapter for SvelteKit apps that generates a standalone Deno server. Usage. Install with npm i -D svelte-adapter-deno , then add the adapter to...
Read more >
Made using SvelteKit (feat. ugly hacks to get prod to work)
I've been trying to deploy on vercel, but like you say the adapter is broken. So how did you manage to deploy on...
Read more >
svelte-adapter-deno - npm
[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that generates a standalone Deno server.. Latest version: 0.8.1, ...
Read more >
Svelte Society on Twitter: "SvelteKit Deno! https://t.co ...
The adapter itself has been available for some time now, but last week I updated it to also run successfully on Deno Deploy,...
Read more >
SvelteKit Is in Public Beta - Hacker News
Svelte Kit runs SSR on Node JS servers like Sapper did, but also on ... of having an `adapter-deno` to allow the built...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found