Closed secretgspot closed 2 years ago
From the looks of your system information, you are trying to install auth-helpers-sveltekit with the latest version v2 of the supabase-js library. We haven't released a version that works with that version as yet, the version released was to resolve issues with the breaking changes in SvelteKit RC. If you look at the peer dependency of the package.json you will notice its stated to work with ^1.35.3
, so only versions in the v1
of the supabase-js library.
same here I'm trying to run any of the examples all of them don't work
same here I'm trying to run any of the examples all of them don't work
A bit more input on what exactly is not working or a reproduction would very handy
Are there any plans to update this for v2 RC compatibility soon?
@tomsharratt I've been playing around a bit, you can take a look at my fork. It will probably change before the release but if you want to use it feel free. Also make sure to check if it's actually working correct, I didn't do a lot of testing.
To be concise the v2 rc update will take a bit more time to solidify the api and avoid breaking changes.
Edit:
the package is not published, you'd have to build it yourself.
same here I'm trying to run any of the examples all of them don't work
A bit more input on what exactly is not working or a reproduction would very handy
reproduction: download the release 0.7.1 in the sveltekit example run pnpm i pnpm dev
same here I'm trying to run any of the examples all of them don't work
A bit more input on what exactly is not working or a reproduction would very handy
2022-10-03.15-25-26.mp4 reproduction: download the release 0.7.1 in the sveltekit example run pnpm i pnpm dev
Ahh i see. If you want to run any example inside the monorepo you need to build the packages first.
Run inside the monorepo root
pnpm i
pnpm build:sveltekit
pnpm dev --filter @example/sveltekit
If you want to run the example standalone you need to modify the package.json:
"dependencies": {
- "@supabase/auth-helpers-sveltekit": "workspace:*",
+ "@supabase/auth-helpers-sveltekit": "^0.7.1",
}
@tomsharratt I've been playing around a bit, you can take a look at my fork. It will probably change before the release but if you want to use it feel free. Also make sure to check if it's actually working correct, I didn't do a lot of testing.
To be concise the v2 rc update will take a bit more time to solidify the api and avoid breaking changes.
Edit:
the package is not published, you'd have to build it yourself.
Can you tell me how do you use the build files in a sveltekit project?
@Nisthar copy the contents of this folder inside src/lib/supabase-auth
. Adjust your src/app.d.ts
and remove the app.d.ts
file from the copied folder. That should be it. You can now import everything you need from $lib/supabase-auth
.
@Nisthar copy the contents of this folder inside
src/lib/supabase-auth
. Adjust yoursrc/app.d.ts
and remove theapp.d.ts
file from the copied folder. That should be it. You can now import everything you need from$lib/supabase-auth
.
@david-plugge why is it not working?
can you publish it into npm?
For me what worked was uninstalling the 2.0.3 version of supabase-js and installing 2.0.0
The auth helpers are released for v2 now so there shouldn´t be an issue anymore. l´ll close this issue now, feel free to open it again if you encounter any issues (or create a new issue)
Bug report
Describe the bug
unable to resolve dependency tree
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
stuff working as it should!
Screenshots
System information
Additional context
this is so frustrating, auth-helper not playing nice with older version of supabase-js so need to update supabase-js but then current auth-helper doesn't like latest version of supabase-js, which in turn doesn't like earlier version of auth-helper. I feel like developers don't even bother testing, checking, updating documentation and just do it for the sake of github heatmap being filled up