I've just been informed about a potential issue with leaving my company (and Singapore). They mentioned IR21 and on reading the IRAS portal it seems it is something the company is supposed to sort out when I gave them my notice, but I don't think they did.
My guess is that they did not do this on time and are only just getting around to it. My contract with the company has a one month notice period, and I gave them that notice a month ago so I'm about to reach my leaving date.
Now they drop this bombshell on me when I'm scheduled to leave Singapore in a few days. I'm worried what impact it will have on me given I've personally done nothing wrong and it seems the company is at fault. They didn't even tell me about my salary being withheld (after reading about IR21 I get why its done, and I'm fine with that - a heads up would have been good though!).
Reading posts on here I might even have trouble with immigration when I try and leave? As far I as knew I was just supposed to hand in my EP this week and get a STVP to allow me to exit legally, I had no idea about any other complications due to the company being at fault.
I've been planning my move for weeks - have plane tickets booked, deposits paid, relocation arranged etc. Now I fear it is all going to fall apart and cost me a fortune

Am I likely to be in trouble because the company hasn't done their job correctly? I pray there are legitimate options I can take, but with only a few days left it's looking bleak.
I'll be chasing my company HR again tomorrow and whilst I'm sure they'll try and help (it is their fault) I figured I'd see if anyone here has any advice, especially since my company doesn't seem to fully know what they need to do.
Thanks.