Forge bundler can't find a ts only package

I am trying to use an npm package in my application that is published as a TS only package (it doesn’t have a dist folder containing transpiled js code).
When I attempt to use this package (@supabase/supabase-js), Forge deploy fails saying that it cannot find the package in my source directory. Yet if I look in the local node_modules folder I can see the package is there.

Deploying collector to development...
ℹ Packaging app files
Error: Bundling failed: Module not found: Error: Can't resolve '@supabase/supabase-js' in '/Users/jeffryan/repos/collector/src', [tsl] ERROR in /Users/jeffryan/repos/collector/src/collector.ts(3,30)
      TS2307: Cannot find module '@supabase/supabase-js' or its corresponding type declarations.

Is there any way to make Forge recognize the package?

Hey @jeffryan, sorry for not getting to this earlier, are you still running into issues here?
If so, could you please provide me with an example on how to repro the issue? it seems like I was able to use the package in my app like so:

import { createClient } from '@supabase/supabase-js'
...
const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')
....
1 Like

Interesting. I haven’t tried it since I posted that but I’ll give it another go and let you know if I’m still having trouble. Thanks @BoZhang