Module issues (require(id))

Never seen this error before, but based on the error, it doesn’t make much sense as I uploaded the module and required the module id.

But, what’s going on is that I receive this error when requiring the module:
Is the asset id correct and is the asset type "Model"?

Model
https://prnt.sc/uvopvi

I copied the id from the url and required it, but that’s not really working out too good.

1 Like

Is the module named “MainModule”?

1 Like

Yes, it indeed is. However not the model name.

If I remember correctly the ID you get from the Website and the Asset ID are different. So that might be the problem. I might be wrong though, and nor am I familiar on the proper way to get the Asset ID of a Module. But I remember someone recommending a plugin that fetches the Modules Asset ID.

If the module script is saved as a model then the id can be taken from the URL of the model page.

Well if that’s the case, why do I get the error? I’m confused about how this works because the id from the website is matching.