Modules referenced to through ObjectValues are not typed correctly by require

Reproduction Steps

Create two ModuleScripts (a and b) and an ObjectValue, c

Set the value of c to the ModuleScript b.

Try to require the module b using the value of ObjectValue c

No typing information will be derived, and instead complains about an unknown require

Expected Behavior

I expect it to grab and load the typing information from the referenced module.

Actual Behavior

The referenced module is treated as unknown and raises an unknown module error.

image

In the rare case where the value is unknown at edit time, yeah, it should be complaining, however, since the module is directly linked at edit time, it should be generating type info from the module.

Issue Area: Studio
Issue Type: Other
Impact: Moderate
Frequency: Constantly

2 Likes

Thanks for the report! We’ll investigate.

2 Likes

Thank you for reporting this, we identified the cause of this issue and it’s similar to this bug’s root cause:

Please let us know if you have any questions regarding this.

1 Like