<-- Back

Error when opening, creating, or editing a microflow or workflow in Mendix Studio Pro: t is not a function

Issue

When opening, editing, or creating a new microflow or workflow in Studio Pro, the following error occurs:

t is not a function. Please Close and reopen this UI component. If the issue persists, contact Mendix Support.

The microflow, or workflow, is not created, and the editor does not open, preventing further development activities.

Environment

  • Studio Pro v10.24.0 - v10.24.22
  • Studio Pro v11.0.0 and newer

Cause

An incompatibility between Studio Pro and Microsoft Edge WebView2 Runtime version 150.0.4078.48 causes the issue. The issue affects only the listed versions of Studio Pro running on machines where Microsoft Edge WebView2 version 150.0.4078.48 is installed. It affects the in-editor Maia features and their interaction with the WebView2.

The newer WebView2 Runtime version 150 introduces a compatibility issue that causes the t is not a function error when opening or creating empty microflows and workflows.

A permanent fix is included in upcoming Studio Pro releases.

Solution / Workaround

Upgrade to one of the following Mendix Studio Pro versions, or a newer release, once available. The permanent fix is included in these versions:

  • Mendix Studio Pro 10.24.23

  • Mendix Studio Pro 11.6.8

  • Mendix Studio Pro 11.12.1

  • Mendix Studio Pro 11.13 and newer

In the meantime, as a workaround, configure Mendix Studio Pro to use Microsoft Edge WebView2 Fixed Version Runtime 149 by following these steps:

  1. Download Microsoft Edge WebView2 Fixed Version Runtime 149 and select the appropriate architecture for the operating system.

  2. Extract the downloaded .cab file to a separate folder. For example:

    C:\WebView2\149\

    Do not uninstall or replace the system-installed WebView2 Runtime.

  3. Open the Start menu and search for Edit environment variables for your account.

  4. Click Environment Variables.

  5. Under User variables, click New.

  6. Enter the following values:

    • Variable name: WEBVIEW2_BROWSER_EXECUTABLE_FOLDER

    • Variable value: C:\WebView2\149\

    Replace the example path with the folder where the WebView2 Runtime was extracted.

  7. Click OK to save the environment variable.

  8. Restart Studio Pro.

Internal information related

  • 282634

  • C05C1BYTSQ2/p1783368514013639 , C05C1BYTSQ2/p1783408478519559

Additional information

Other documentation:

Microsoft Edge WebView2

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.