You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Supabase to one of the components such as src/components/alert/alert.component.ts by adding the following two lines after the existing import statements:
import { createClient } from '@supabase/supabase-js'
createClient('https://xyzcompany.supabase.co', 'public-anon-key')
npm run test
Observe that now all tests fail to even load, each giving an error of the following form:
src/components/alert/alert.test.ts:
🚧 Browser logs on Chromium:
SyntaxError: The requested module './../../../node-fetch/lib/index.js' does not provide an export named 'default'
🚧 Browser logs on Webkit:
SyntaxError: Importing binding name 'default' cannot be resolved by star export entries.
❌ Could not import your test module. Check the browser logs or open the browser in debug mode for more information.
Expected behavior
Adding Supabase to a component should not cause its test and the tests of all other components in the package to fail to load.
System information
OS: macOS Sonoma 14.2.1
Browsers tested: chrome, safari
Version of supabase-js: 2.1.5
Version of Node.js: 21.5.0
Related report
This open issue appears to be related, but since it did not include a detailed means to reproduce, I thought I'd create a new issue to facilitate reproduction in hopes to resolve this more quickly:
I've closed this issue and posted instead to supabase/supabase#21261 because is more pervasive as it prevents any Supabase functions from working as supabase-js cannot even load.
Bug report
Describe the bug
Adding a component that uses Supabase to Shoelace components produces the following error:
Which references this line in PostgrestBuild.js:
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
git clone https://github.com/shoelace-style/shoelace
cd shoelace
npm install @supabase/supabase-js
npm install
npm run build
npm run test
=> All tests pass, check.src/components/alert/alert.component.ts
by adding the following two lines after the existingimport
statements:npm run test
Expected behavior
Adding Supabase to a component should not cause its test and the tests of all other components in the package to fail to load.
System information
Related report
This open issue appears to be related, but since it did not include a detailed means to reproduce, I thought I'd create a new issue to facilitate reproduction in hopes to resolve this more quickly:
The text was updated successfully, but these errors were encountered: