Added error handling when loading multiple tsx files.