kit
kit copied to clipboard
web development, streamlined
Ways that types in SvelteKit apps could be improved: ## Implicit `params` and `props` for `load` functions (update: done) ```svelte /** @type {import('@sveltejs/kit').Load */ export async function load({ params, fetch...
### Describe the bug I'm building my own adapter with typescript, and I use `tsc -b` to build it. Since the new routing change, I get a type error when...
### Describe the problem When doing a client-side `__data.json` request, errors thrown with the `error` helper function inside `hooks.server.ts` , will not return the correct error object. It works as...
### Describe the bug I was trying to create a custom error page for route /tee. But creating the +error.svelte file inside this directory doesn't solve the problem even though...
### Describe the problem I've now twice gotten burned by using the "wrong" fetch in my loaders. Running fetch("/api/my-endpoint") with the global fetch that's in scope will puke, since "/api/my-endpoint"...
### Describe the bug Single-quotes are missing in the header for the CSP directive `require-trusted-types-for`. When configuring CSP for `require-trusted-types-for: ['script']`, the output looks like `require-trusted-types-for script`. It is thus...
### Describe the problem One of the recommendations by https://csp-evaluator.withgoogle.com regarding `script-src` is the following: > Consider adding 'unsafe-inline' (ignored by browsers supporting nonces/hashes) to be backward compatible with older...
### Describe the bug A `SvelteKit` application makes a request to `__data/json` even when no actual `load` function gets exported inside `+page.server.js`. I would expect that no unnecessary request gets...
### Describe the bug `import.meta.env` is undefined after upgrading to v432, causing vitest to fail. ### Reproduction PR of the upgrade branch. Only contains changes for the upgrade. - https://github.com/mermaid-js/mermaid-live-editor/pull/983...
### Describe the bug Shouldn't invalidate(url) work for urls that are fetched in both: shared and server load functions? currently it's only working using depends but not when using fetch....