Skip to content

NS_ERROR_CORRUPTED_CONTENT with kit 2.65.0 #16013

Description

@charlyoleg2

Describe the bug

After upgrading sveltekit to 2.65.0, my website get broken with the following errors:

Tested with Chromium and Firefox.
At compilation time, no error, no warning.

Reproduction

npx sv create kitissue
# select SvelteKit minimal, Typescript, none, npm
cd kitissue
vim vite.config.ts
# add the line: paths: { relative: false }
npm run build
npm run preview
# open the browser, you see the issue in DevTool console
import adapter from '@sveltejs/adapter-auto';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
	plugins: [
		sveltekit({
			compilerOptions: {
				// Force runes mode for the project, except for libraries. Can be removed in svelte 6.
				runes: ({ filename }) =>
					filename.split(/[/\\]/).includes('node_modules') ? undefined : true
			},

			// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
			// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
			// See https://svelte.dev/docs/kit/adapters for more information about adapters.
			adapter: adapter(),
			paths: { relative: false }
		})
	]
});

Logs

Loading module from “https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/chunks/DBrbuulb.js” was blocked because of a disallowed MIME type (“text/html”). losange
Loading module from “https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/nodes/0.CTGQGwbp.js” was blocked because of a disallowed MIME type (“text/html”). losange
Uncaught (in promise) Error: Unable to preload CSS for https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/assets/0.Be5pTVV_.css
    Immutable 6
    async* https://charlyoleg2.github.io/parame76/desi76/losange:69
    promise callback* https://charlyoleg2.github.io/parame76/desi76/losange:68
DBrbuulb.js:3:8570
Loading module from “https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/chunks/C-5QfD1z.js” was blocked because of a disallowed MIME type (“text/html”). losange
Loading module from “https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/nodes/1.Dj998sHj.js” was blocked because of a disallowed MIME type (“text/html”). losange
Loading module from “https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/nodes/3.CyFmq4Op.js” was blocked because of a disallowed MIME type (“text/html”). losange
Loading module from “https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/chunks/xihTtKlq.js” was blocked because of a disallowed MIME type (“text/html”). losange
Loading module from “https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/chunks/CCm9NRYp.js” was blocked because of a disallowed MIME type (“text/html”). losange
Loading module from “https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/chunks/C1eJXQDC.js” was blocked because of a disallowed MIME type (“text/html”). losange
Loading module from “https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/chunks/DkYxdl8U.js” was blocked because of a disallowed MIME type (“text/html”). losange
Error: Unable to preload CSS for https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/assets/3.CYDkf_cO.css
    Immutable 9
    async* https://charlyoleg2.github.io/parame76/desi76/losange:69
    promise callback* https://charlyoleg2.github.io/parame76/desi76/losange:68
app.It4h8LkS.js:2:2184
Loading module from “https://charlyoleg2.github.io/parame76/_app/immutable/entry/_app/immutable/nodes/2.1TgUCM8q.js” was blocked because of a disallowed MIME type (“text/html”).

System Info

System:
    OS: Linux 6.17 Ubuntu 24.04.4 LTS 24.04.4 LTS (Noble Numbat)
    CPU: (22) x64 Intel(R) Core(TM) Ultra 7 155H
    Memory: 25.99 GB / 30.80 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 24.16.0 - /usr/bin/node
    npm: 11.16.0 - /usr/bin/npm
    bun: 1.2.1 - /home/charles/.bun/bin/bun
    Deno: 2.8.2 - /home/charles/.deno/bin/deno
  Browsers:
    Chromium: 149.0.7827.53
    Firefox: 151.0.4
    Firefox Developer Edition: 151.0.4

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions