import "server-only" crashing bin scripts
Unanswered
Schweizerischer Niederlaufhund posted this in #help-forum
Schweizerischer NiederlaufhundOP
I've got a bunch of utility functions that are server-only and are leveraging the
I'd now like to run some bin scripts with these utility functions. The problem is that this import crashes the bin scripts. Any advice on how I can tweak https://www.npmjs.com/package/tsx to not throw?
import 'server-only syntax to make sure they aren't accidently used on the client. I'd now like to run some bin scripts with these utility functions. The problem is that this import crashes the bin scripts. Any advice on how I can tweak https://www.npmjs.com/package/tsx to not throw?