Closed D4rkMindz closed 1 year ago
Whenever I comment the line '@nuxtjs/supabase' in the nuxt config modules ("remove supabase" from the project) it starts working again. Therefore, the reason MUST be supabase itself.
Edit 01.04.2023: This error causes the JS execution to stop. Since the error occurs during the boot process, it prevents and blocks any further execution (and therefore development too).
this is bug or not , i also get the same thing help me
how i can fix this
You cannot fix it until a new version containing the fix is released.
There is a quick fix: For Yarn
"resolutions": {
"@supabase/gotrue-js": "2.16.0"
},
For NPM, you could use
"overrides": {
"@supabase/gotrue-js": "2.16.0"
},
not working
thanks solved upgrade to v0.3.5 @nuxtjs/supabase
We removed this dependency from the gotrue-js library which should resolved the issue.
I'm not sure if this is related, but seems very close:
PostgrestBuilder.ts:1 Uncaught SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/cross-fetch@3.1.8/node_modules/cross-fetch/dist/browser-ponyfill.js?v=d7ccb661' does not provide an export named 'default' (at PostgrestBuilder.ts:1:8)
It seems to come from import crossFetch from 'cross-fetch'
in PostgrestBuilder.ts
, and should be related to the supabase-js package.
I uninstalled and installed @nuxtjs/supabase (using pnpm instead of nuxi)
Bug report
Describe the bug
After installing supabase, I receive the error message "Uncaught SyntaxError: The requested module '/_nuxt/node_modules/crypto-js/sha256.js?v=98406020' does not provide an export named 'default'". The error seems to originate from the helpers.ts file
To Reproduce
Install nuxt and nuxt/supabase.
my package.json
my nuxt config
Expected behavior
To not throw an Error
Screenshots
System information