You may want to consider using @tscircuit/footprints instead of the "sparkfun strings"
The Sparkfun Eagle Component footprints can easily be used with tscircuit by
providing a string to your footprint
parameter for a bug
like so:
export const MyCircuit = () => <bug footprint="sparkfun:0402" />