Cannot use 'in' operator to search for 'home' in undefined`

Hello, my production build worked fine on cloudflare and now, i don't really understand why, now i get this issue when i open the /home of my site When I open the root url, it works I use sveltekit inside the file .svelte-kit/cloudflare/_worker.js I get the error Cannot use 'in' operator to search for 'home' in undefined
}
const stripped_pathname = pathname.replace(/\/$/, "");
let is_static_asset = false;
const filename = stripped_pathname.slice(base_path.length + 1);
if (filename) {
is_static_asset = manifest.assets.has(filename) || manifest.assets.has(filename + "/index.html") || filename in manifest._.server_assets || filename + "/index.html" in manifest._.server_assets;
}
let location = pathname.at(-1) === "/" ? stripped_pathname : pathname + "/";
if (is_static_asset || prerendered.has(pathname) || pathname === version_file || pathname.startsWith(immutable)) {
res = await env.ASSETS.fetch(req);
} else if (location && prerendered.has(location)) {
}
const stripped_pathname = pathname.replace(/\/$/, "");
let is_static_asset = false;
const filename = stripped_pathname.slice(base_path.length + 1);
if (filename) {
is_static_asset = manifest.assets.has(filename) || manifest.assets.has(filename + "/index.html") || filename in manifest._.server_assets || filename + "/index.html" in manifest._.server_assets;
}
let location = pathname.at(-1) === "/" ? stripped_pathname : pathname + "/";
if (is_static_asset || prerendered.has(pathname) || pathname === version_file || pathname.startsWith(immutable)) {
res = await env.ASSETS.fetch(req);
} else if (location && prerendered.has(location)) {
Does somebody know anything about that ?
2 Replies
HOEK
HOEKOP6mo ago
but this file is generated by the adapter cloudflare automatically, and i didn't change the version between the build that worked on cloudflare and this one this may be because we added sentrySvelteKit({...}) in the sveltekit config and it may break something with cloudflare
Razboy20
Razboy206mo ago
(This is what package-lock.json solves/locks, so this should not be the case) did you modify any other dependencies?

Did you find this page helpful?