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

error TypeError: Cannot read property 'getItem' of undefined #167

Closed
salemalem opened this issue May 5, 2021 · 2 comments
Closed

error TypeError: Cannot read property 'getItem' of undefined #167

salemalem opened this issue May 5, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@salemalem
Copy link

Bug report

error TypeError: Cannot read property 'getItem' of undefined

Description

When I run Deno JS it gives me this error:
error TypeError: Cannot read property 'getItem' of undefined
at y.getItem (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:3822)
at n._recoverSession (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:13862)
at new w (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:9242)
at new n (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:53270)
at t.default._initSupabaseAuthClient (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:51187)
at new t.default (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:50233)
at Object.t.createClient (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:53083)
at file:///C:/Users/server.js:8:30 # replaced my file name
at ()
TypeError: Cannot read property 'getItem' of undefined
at y.getItem (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:3822)
at n. (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:14223)
at Generator.next ()
at https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:8543
at new Promise ()
at b (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:8288)
at n._recoverAndRefresh (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:14147)
at new w (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:9265)
at new n (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:53270)
at t.default._initSupabaseAuthClient (https://unpkg.com/@supabase/supabase-js@1.11.9/dist/umd/supabase.js:1:51187)
Error getting session from URL.

To Reproduce

  1. Install Deno JS
  2. import "https://unpkg.com/@supabase/supabase-js";
  3. const SERVICE_KEY = 'your-key';
    const SUPABASE_URL = "https://xyz.supabase.co"
  4. deno run --allow-net server.js
  5. See error

Even though it shows an error, everything works well anyway. Is this a warning message then?

Expected behavior

Everything should have worked without errors.

Screenshots

image
image

System information

  • OS: Windows 10
  • Browser: Brave
  • Version of supabase-js: 1.11.9
  • Version of Deno JS: 1.5.3
@salemalem salemalem added the bug Something isn't working label May 5, 2021
@salemalem
Copy link
Author

insert function doesn't work on Deno JS

@kiwicopple
Copy link
Member

Yeah this one is a Deno issue - we're tracking it here!

#161

Will close in favour of the earlier issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants