-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as not planned
Description
Describe the bug
After following these two issues:
- Cannot read properties of undefined (reading 'startsWith') vite-plugin-svelte#1053
- TypeScript nodes still causing code generation failures #14743
I've upgraded my Svelte version to the, as of current, latest 5.14.3. Hooks have completely stopped working for me. I can't even write a string to the console. My src/hooks.ts is essentially being ignored.
Reproduction
- Install new a new project with the latest version of SvelteKit
- Create a src/hooks.ts file:
import type { Handle } from "@sveltejs/kit";
export const handle: Handle = async ({ event, resolve }) => {
console.log("Hooks?");
const response = await resolve(event);
return response;
};Logs
No response
System Info
System:
OS: macOS 14.6.1
CPU: (8) arm64 Apple M2
Memory: 120.38 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.18.0 - ~/Library/pnpm/node
npm: 10.8.2 - ~/Library/pnpm/npm
pnpm: 9.12.3 - ~/Library/pnpm/pnpm
Browsers:
Brave Browser: 131.1.73.101
Safari: 17.6
npmPackages:
svelte: ^5.14.3 => 5.14.3 Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
No labels