Cannot read property queryselector of null outsystemsui.interaction.search

This is in an application that has not had updates in recent months, other than dependency refreshes.

Publishing the module works without errors, however, we have some errors using the application when trying to open specific pages.  Here is the full stack trace:

Message

Cannot read property 'querySelector' of null

Environment Information

eSpaceVer: Id=51773, PubId=0, CompiledWith=11.11.2.29611

RequestUrl: https://domain/application/moduleservices/log?clientTimeInMillis=1620187406301 (Method: POST)

AppDomain: /.............

FilePath: C:\...

ClientIp: xxxxxxxxxxxxxx

Locale: en-US

DateFormat: MM/dd/yyyy

PID: 12448 ('w3wp', Started='5/4/2021 1:25:19 PM', Priv=4680Mb, Virt=2119733Mb)

TID: 18

Thread Name:

.NET: 4.0.30319.42000

Client Runtime Packages: client-runtime-core= 3.3.6;client-runtime-view-framework-react= 2.4.11;client-runtime-widgets= 2.4.11;

Client-Side Log

Stack

TypeError: Cannot read property 'querySelector' of null

    at https://domain/application/scripts/OutSystemsUI.Interaction.Search.mvc.js?Kz2ZLiu2R40poRwbc0WI1w:400:58

    at Controller.e.safeExecuteJSNode (https://domain/application/scripts/OutSystems.js?UjsmaaiqJAZq+3CsH05pUw:15:16257)

    at Controller._onReady$Action (https://domain/application/scripts/OutSystemsUI.Interaction.Search.mvc.js?Kz2ZLiu2R40poRwbc0WI1w:255:40)

    at https://domain/application/scripts/OutSystems.js?UjsmaaiqJAZq+3CsH05pUw:15:28127

    at d (https://domain/application/scripts/OutSystems.js?UjsmaaiqJAZq+3CsH05pUw:2:15145)

    at f (https://domain/application/scripts/OutSystems.js?UjsmaaiqJAZq+3CsH05pUw:2:14891)

    at Object.p [as tryCatchFinally] (https://domain/application/scripts/OutSystems.js?UjsmaaiqJAZq+3CsH05pUw:2:15394)

    at Controller.t.safeExecuteClientAction (https://domain/application/scripts/OutSystems.js?UjsmaaiqJAZq+3CsH05pUw:15:28091)

    at Controller.onReady$Action (https://domain/application/scripts/OutSystemsUI.Interaction.Search.mvc.js?Kz2ZLiu2R40poRwbc0WI1w:339:19)


    at https://domain/application/scripts/OutSystemsUI.Interaction.Search.mvc.js?Kz2ZLiu2R40poRwbc0WI1w:372:19

We removed instances of interaction\search and this error no longer occurs.  However, there was a follow-on error that is still occurring, preventing the page from loading:

Source

Message

Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

Environment Information

eSpaceVer: Id=51814, PubId=0, CompiledWith=11.11.2.29611

RequestUrl: https://domain/application/moduleservices/log?clientTimeInMillis=1620227113840 (Method: POST)

AppDomain: /XXXX/XXXX/1/ROOT/application-253-132647005934027959

FilePath: C:\...\PS\running\application.01073968264\

ClientIp: xxxxx

Locale: en-US

DateFormat: MM/dd/yyyy

PID: 16372 ('w3wp', Started='5/5/2021 7:01:33 AM', Priv=2852Mb, Virt=2116786Mb)

TID: 245

Thread Name:

.NET: 4.0.30319.42000

Client Runtime Packages: client-runtime-core= 3.3.6;client-runtime-view-framework-react= 2.4.11;client-runtime-widgets= 2.4.11;

Client-Side Log

Stack

Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

    at Er (https://domain/application/scripts/OutSystemsReactView.js?hCk4KYaonRPVD_9jOZucog:3:9240)

    at wr (https://domain/application/scripts/OutSystemsReactView.js?hCk4KYaonRPVD_9jOZucog:3:8734)

    at Kr (https://domain/application/scripts/OutSystemsReactView.js?hCk4KYaonRPVD_9jOZucog:3:22487)

    at unstable_runWithPriority (https://domain/application/scripts/OutSystemsReactView.js?hCk4KYaonRPVD_9jOZucog:1:8420)

    at Dt (https://domain/application/scripts/OutSystemsReactView.js?hCk4KYaonRPVD_9jOZucog:2:4982)

    at Qr (https://domain/application/scripts/OutSystemsReactView.js?hCk4KYaonRPVD_9jOZucog:3:20559)

    at jr (https://domain/application/scripts/OutSystemsReactView.js?hCk4KYaonRPVD_9jOZucog:3:16595)

    at https://domain/application/scripts/OutSystemsReactView.js?hCk4KYaonRPVD_9jOZucog:2:5272

    at unstable_runWithPriority (https://domain/application/scripts/OutSystemsReactView.js?hCk4KYaonRPVD_9jOZucog:1:8420)

    at Dt (https://domain/application/scripts/OutSystemsReactView.js?hCk4KYaonRPVD_9jOZucog:2:4982)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.