npm install fails for @supabase/auth-helpers-sveltekit
See original GitHub issueBug report
Describe the bug
unable to resolve dependency tree
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- come to any of the official sources such as npmjs.com, see that package was last updated few days ago and is at version 0.7.1 latest
- run “npm i @supabase/auth-helpers-sveltekit”
- watch screen fill with red
Expected behavior
stuff working as it should!
Screenshots
└ $ npm i @supabase/auth-helpers-sveltekit
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: muniapp@0.0.1
npm ERR! Found: @supabase/supabase-js@2.0.0-rc.10
npm ERR! node_modules/@supabase/supabase-js
npm ERR! @supabase/supabase-js@"^2.0.0-rc.10" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @supabase/supabase-js@"^1.35.3" from @supabase/auth-helpers-sveltekit@0.7.1
npm ERR! node_modules/@supabase/auth-helpers-sveltekit
npm ERR! @supabase/auth-helpers-sveltekit@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\xxx\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xxx\AppData\Local\npm-cache\_logs\2022-10-02T00_53_00_263Z-debug-0.log
System information
"devDependencies": {
"@sveltejs/adapter-auto": "next",
"@sveltejs/kit": "next",
"svelte": "^3.46.0",
"vite": "^3.1.0"
},
"type": "module",
"dependencies": {
"@fontsource/fira-mono": "^4.5.0",
"@supabase/supabase-js": "^2.0.0-rc.10"
}
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
Issue Analytics
- State:
- Created a year ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Supabase Auth with SvelteKit
This submodule provides convenience helpers for implementing user authentication in SvelteKit applications. Installation#. This library supports Node.js ^16.15.
Read more >SvelteKit with Supabase SSR Auth Helpers
Let name the project SvelteKitSupabaseAuthApp. Just use the Skeleton project, no TypeScript, no ESLint, no Prettier, no Playwright. npm create ...
Read more >@supabase/supabase-auth-helpers - npm
A collection of framework specific Auth utilities for working with Supabase.. Latest version: 1.4.2, last published: 7 months ago.
Read more >Revamped Auth Helpers for Supabase (with SvelteKit support)
Thats great! Does it mean the normal supabase package, the dart client, will support that too? Im using the dart package because I...
Read more >@supabase/supabase-js v2.2.2 Bundlephobia
... of @supabase/supabase-js v2.2.2 is 84.4 kB (minified), and 21.3 kB when compressed using GZIP. Bundlephobia helps you find the performance impact of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
If you want to run the example standalone you need to modify the package.json:
@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
.