"Blue line of death" appears in a module script and breaks typechecking & autofill game wide

Hello fellow devs.

When coding a modulescript ive encountered this error

I tried reinstalling studio, uninstalling studio googling the issue and just about everything I know and I’m really lost here

When the error occurs theres nothing you can do within the module to rid it, all other scripts are affected. More detailed example shown inside video.

Some things of note: This module limitedly uses _G
This module requires a lot of other modules

Small update, removing _G mentions does not fix the problem.

Update II:

I believe its any function that returns within the modules main function, just need to verify.

Unfortunately this is not the case.
I did manage to fix it in a archaic way by going line-by line and erasing parts that caused the blue line of death (which were just seemingly random)

I have no official solution unfortunately

This report needs to be made to #bug-reports:engine-bugs. If you have perms, please make it there. Let me see if I can reproduce this bug, and I can make my own thread (with credit of course)

1 Like

This a bug has been posted on the #bug-reports. Luau Type Checker Incorrectly Handling Types Within IF Statements

1 Like

Would if I could, but currently I cannot post in the engine bugs category for whatever reason.