You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug (REQUIRED)
can't do require("module").function1() , have to declare the require as a variable and then call the function through it, i.e. have to do
local m = require("module")
m.function1()
To Reproduce (REQUIRED)
Steps to reproduce the behavior:
Create or pick a lua script module
Attempt to require() it and call one of its functions directly on the require()
See error
Expected behavior (REQUIRED)
The function should be called
Defold version (REQUIRED):
Version 1.5.0
Platforms (REQUIRED):
Platforms: Windows (Editor)
OS: Windows 10
Additional context (OPTIONAL):
Seems to also work if the module is already loaded i.e.
local m = require("module")
require("module").function1()
The text was updated successfully, but these errors were encountered:
Describe the bug (REQUIRED)
can't do
require("module").function1()
, have to declare the require as a variable and then call the function through it, i.e. have to doTo Reproduce (REQUIRED)
Steps to reproduce the behavior:
Expected behavior (REQUIRED)
The function should be called
Defold version (REQUIRED):
Platforms (REQUIRED):
Additional context (OPTIONAL):
Seems to also work if the module is already loaded i.e.
The text was updated successfully, but these errors were encountered: