[nitro] [request error] Cannot read properties of undefined (reading 'name')
See original GitHub issueVersion
- Operating System:
Darwin
- Node Version:
v17.5.0
- Nuxt Version:
3.0.0-27491748.3186841
- Package Manager:
npm@8.4.1
- Builder:
vite
- User Config:
privateRuntimeConfig
,modules
- Runtime Modules:
@nuxtjs/supabase@0.1.7
- Build Modules:
-
Reproduction Link
Steps to reproduce
What is Expected?
What is actually happening?
[nitro] [request error] Cannot read properties of undefined (reading 'name')
at Module.useSupabaseToken (./.nuxt/dist/server/server.mjs:8157:39)
at Module.useSupabaseClient (./.nuxt/dist/server/server.mjs:2411:39)
at ./.nuxt/dist/server/server.mjs:2365:40
at fn (./.nuxt/dist/server/server.mjs:332:27)
at Object.callAsync (./node_modules/unctx/dist/index.mjs:41:19)
at callWithNuxt (./.nuxt/dist/server/server.mjs:334:23)
at applyPlugin (./.nuxt/dist/server/server.mjs:289:29)
at Module.applyPlugins (./.nuxt/dist/server/server.mjs:299:11)
at async createNuxtAppServer (./.nuxt/dist/server/server.mjs:44:7)
at async renderToString (./node_modules/vue-bundle-renderer/dist/index.mjs:247:19)
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
Cannot read properties of undefined (reading 'content-type ...
The problem only seems to exist when the API is used while SSR. Requesting with postman does not throw any errors. 1
Read more >Cannot read properties of undefined Nuxt.js - Stack Overflow
But I m getting cannot read properties of undefined while, open is a defined variable.
Read more >TypeError: Cannot read properties of undefined (reading 'name')
Hello! I am getting this error: TypeError: Cannot read properties of undefined (reading 'name'). at Object.
Read more >cannot read properties of undefined (reading 'call') vue
The error message suggests you are trying to read something from an array at a specific index that is undefined. The only occurrence...
Read more >Cannot read properties of undefined' - JavaScript Debugging
How To Fix 'Uncaught TypeError : Cannot read properties of undefined ' - JavaScript Debugging.
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 FreeTop 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
Top GitHub Comments
I have the same problem and checked the code and seems that the destructor now is missing a level.
And vars are on .env file. Config defined as:
@procrates Here are the options you can override with the
publicRuntimeConfig
: https://supabase.nuxtjs.org/#optionsConcerning
SUPABASE_URL
andSUPABASE_KEY
, you just have to set it in your.env
.