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

fallback export in +server.js not recognized #2156

Closed
karimfromjordan opened this issue Sep 13, 2023 · 0 comments
Closed

fallback export in +server.js not recognized #2156

karimfromjordan opened this issue Sep 13, 2023 · 0 comments
Labels
feature request New feature or request Fixed Fixed in master branch. Pending production release. good first issue Good for newcomers

Comments

@karimfromjordan
Copy link

Describe the bug

SvelteKit 1.25.0 added support for a fallback export in +server.js files sveltejs/kit#9755. Writing such a fallback export currently produces the following warning:

Invalid export 'fallback' (valid exports are prerender, trailingSlash, config, entries, GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD, or anything with a '_' prefix)

Reproduction

// +server.js
/** @type {import('./$types').RequestHandler} */
export async function fallback(event) {

}

Expected behaviour

No warning should be shown.

System Info

  • OS: Linux (Fedora 38)
  • IDE: VSCode

Which package is the issue about?

No response

Additional Information, eg. Screenshots

No response

@karimfromjordan karimfromjordan added the bug Something isn't working label Sep 13, 2023
@jasonlyu123 jasonlyu123 added feature request New feature or request good first issue Good for newcomers and removed bug Something isn't working labels Sep 13, 2023
@dummdidumm dummdidumm added the Fixed Fixed in master branch. Pending production release. label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request Fixed Fixed in master branch. Pending production release. good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants