-
Notifications
You must be signed in to change notification settings - Fork 145
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
Framework support for SvelteKit #20
Comments
A bug for sure. Like you said, very likely related to #8 which has been on our roadmap for sure. |
SvelteKit also uses ESM for their package, no CJS, so that will need to be enabled as well. We might need to open a separate ticket for ESM support specifically |
I thought ESM was a requirement for Vite and thus captured in #8 |
@jthegedus ah I didn't realize Vite was relying on ESM too- good catch. 🙏 @KwintenP maybe we create a root issue for |
Probably redundant, but just in case: Initialising a project with ❯ npm init svelte@next test
Unknown Syntax Error: Extraneous positional argument ("svelte@next").
$ turbo create [-p,--private] [-w,--workspace] [--cwd,--prefix #0] [-s,--silent] [--quiet] [-V,--verbose] [--loglevel #0]
error Command failed with exit code 1 Once a SvelteKit example is setup, this is of course not needed anymore. |
Yes, |
@guidobouman npm init has an open issue in #2 |
I'm getting errors here as well, but instead getting:
|
@milky2028 see #2 (comment) for more info. |
ESM is now supported but we found a bug when testing SvelteKit. There’s an open internal PR to resolve that so stay tuned! |
When I saw the tweet about vite.js, I try sveltekit from an existing repository but it doesn't work https://stackblitz.com/github/franxois/svelte-kit-demo-app |
@franxois we're still WIP on getting a few fixes in that will enable SvelteKit, the team will circle back here once these updates hit production. |
Hey ya'all 👋 We have pushed several fixes that now unlock SvelteKit on StackBlitz. Here's an example. However, |
Describe the solution you'd like
https://stackblitz.com/edit/sveltekit-template
This is a clone of the current SvelteKit template app
Turbo failed to install
@sveltejs/kit@next
however usingnpm
"worked" 🤷The webcontainer fails to start, I believe it is something to do with the package resolution. SvelteKit is built with
pnpm
if that matters.Before I new to use Turbo I had installed the deps with
npm
and was unable to runnpm run dev
as there was an issue resolving the deps. I will try and recreate and pase the error here.Give a link to a github repo containing an example of the framework
I am the creator of adapter to configure SvelteKit apps for SSR hosting on Firebase -
svelte-adapter-firebase
Here is the same template as above that I use for CI testing of the adapter - https://github.com/jthegedus/svelte-adapter-firebase/tree/main/examples/functions_single_site
I am keen to have a complete solution for Firebase web app development.
Additional context
#8 is almost certainly related because:
esbuild
duing thebuild
step.The text was updated successfully, but these errors were encountered: