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
Describe the bug
When the package installation is done with pnpm the installed package does not work, giving the following error when trying to run it (the example is using pnpm run dev but it has been replicated with bun and npm and gave the same error).
However, if you delete the node_modeles folder and install using bun or npm the execution works correctly.
To Reproduce
Steps to reproduce the behavior:
Create a sample project, in my case I was testing Hono. bunx create-hono my-app
import{Hono}from'hono'import{createClient}from'@supabase/supabase-js'// EXAMPLE: Create a single supabase client for interacting with your databaseconstsupabase=createClient('https://xyzcompany.supabase.co','public-anon-key')constapp=newHono()app.get('/',(c)=>{returnc.text('Hello Hono!')})exportdefaultapp
Make sure that all dependencies, especially supabase, have been installed with pnpm i.
Execute the program: pnpm run dev.
Expected behavior
You should get the following error by console:
1 | (function (entry, fetcher)
^
SyntaxError: Export named 'createClient' not found in module 'E:\hono-test\my-app\node_modules\@supabase\supabase-js'.
2 |export default "";
^
SyntaxError: Export named 'createClient' not found in module 'E:\hono-test\my-app\node_modules\@supabase\supabase-js'.
Screenshots
System information
Version of OS: Windows 10 22H2
Version of pnpm: 8.15.6
Version of Node.js: 20.10.0
Version of Bun.js: 1.1.3
Versions of Supabase: 2.39.0
The text was updated successfully, but these errors were encountered:
Hey,
I've set up my entire project using pnpm and haven't encountered any problems so far. Notably, pnpm utilizes the same package library as npm, meaning it's unlikely to cause package issues.
Maybe take a look at Bun, it's the only difference between my project and yours.
Hi @MatthewDlr,
I have created a demo and when I run the script with pnpm I still get the same error. I have tried it on another machine to make sure that it is not a problem of my computer and its happen again.
Describe the bug
When the package installation is done with
pnpm
the installed package does not work, giving the following error when trying to run it (the example is usingpnpm run dev
but it has been replicated withbun
andnpm
and gave the same error).However, if you delete the node_modeles folder and install using
bun
ornpm
the execution works correctly.To Reproduce
Steps to reproduce the behavior:
bunx create-hono my-app
pnpm install @supabase/supabase-js
pnpm i
.pnpm run dev
.Expected behavior
You should get the following error by console:
Screenshots
System information
The text was updated successfully, but these errors were encountered: