I managed to solve this issue by creating a sprite atlas in the unity editor and adding the folder containing my .tsx file to the "Objects For Packing" list.