Skip to content

[Bug]: JSModule instance non-async function invocation does not evaluate on page refresh #41146

@ashit-rath

Description

@ashit-rath

Is there an existing issue for this?

  • I have searched the existing issues

Description

A non-async function of a JSModule instance in app when bound to any widget does get invoke on refresh. It throws an error is not a function.

Image

Steps To Reproduce

  1. Create a code package
  2. Create a JSObject
  3. In myFun1 return "hello"
  4. Publish the package
  5. Create a new app
  6. Create a JSModule instance of the previously created JS module
  7. Drag and drop a text widget
  8. Update the property of the text field of the Text widget to {{Text - JSModule11.myFun1()}}
  9. Refresh the app and the text widget's text property would have an error that TypeError: JSModule11.myFun1 is not a function

Public Sample App

No response

Environment

Production

Severity

High (Blocker to building or releasing)

Issue video log

No response

Version

1.79

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingFrontendThis label marks the issue or pull request to reference client codeHighThis issue blocks a user from building or impacts a lot of usersJS moduleIssues affecting JS modules or its instancesNeeds TriagingNeeds attention from maintainers to triagePackages & Git PodAll issues belonging to Packages and GitPackages Podissues that belong to the packages podProductionQANeeds QA attention

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions