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
While everything works fine locally using both Debug and Release configuration, after using published app error InvalidOperationException: No JavaScript runtime found. appeares.
I am using .NET 6 and Typeahead component.
I suspect this is caused by .NET 6 trimming. Default settings are that "removes unused members from types". Since GetJSRuntime uses reflection to get JSRuntime trimmer can not see that JSRuntime property is used and removed it.
Disabled trimming solved this issue for me, but is not suitable as long term solution.
The text was updated successfully, but these errors were encountered:
While everything works fine locally using both Debug and Release configuration, after using published app error
InvalidOperationException: No JavaScript runtime found.
appeares.I am using .NET 6 and Typeahead component.
I suspect this is caused by .NET 6 trimming. Default settings are that "removes unused members from types". Since
GetJSRuntime
uses reflection to getJSRuntime
trimmer can not see thatJSRuntime
property is used and removed it.Disabled trimming solved this issue for me, but is not suitable as long term solution.
The text was updated successfully, but these errors were encountered: