Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init.headers is a symbol, which cannot be converted to a DOMString #53

Open
khromov opened this issue Oct 18, 2024 · 0 comments
Open

init.headers is a symbol, which cannot be converted to a DOMString #53

khromov opened this issue Oct 18, 2024 · 0 comments

Comments

@khromov
Copy link

khromov commented Oct 18, 2024

When installing in a brand new SvelteKit 2 project using VITE v5.4.8, the following error is displayed when trying to navigate to a page:

TypeError: Request constructor: init.headers is a symbol, which cannot be converted to a DOMString.
    at webidl.errors.exception (node:internal/deps/undici/undici:3384:14)
    at webidl.converters.DOMString (node:internal/deps/undici/undici:3650:29)
    at webidl.converters.ByteString (node:internal/deps/undici/undici:3658:35)
    at Object.record<ByteString, ByteString> (node:internal/deps/undici/undici:3567:30)
    at webidl.converters.HeadersInit (node:internal/deps/undici/undici:8715:67)
    at Object.RequestInit (node:internal/deps/undici/undici:3624:21)
    at new Request (node:internal/deps/undici/undici:9267:34)
    at getRequest (file:///Users/k/Documents/GitHub/a/node_modules/@sveltejs/kit/src/exports/node/index.js:109:9)
    at file:///Users/k/Documents/GitHub/a/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:498:27
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Vite config:

import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';

import basicSsl from '@vitejs/plugin-basic-ssl';

export default defineConfig({
	plugins: [basicSsl(), sveltekit()],
	test: {
		include: ['src/**/*.{test,spec}.{js,ts}']
	}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant