question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm install fails for @supabase/auth-helpers-sveltekit

See original GitHub 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:

  1. 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
  2. run “npm i @supabase/auth-helpers-sveltekit
  3. 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:closed
  • Created a year ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
david-pluggecommented, Oct 3, 2022

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",
}
1reaction
david-pluggecommented, Oct 10, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found