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:
- Created a year ago
- Comments:19 (10 by maintainers)
Top GitHub Comments
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.
@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.