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
Hot Reload can break value bindings to Nullable<T> as well as certain others when the page markup is (re)compiled. The compilation fails with the exception System.NotSupportedException: Method BoxingUtils.Box cannot be translated to Javascript.
The shortest repro example is:
{{value: DateTime.Today.Year}}
Usually I experience this with any binding to a property of type int?, for example:
publicint?TestProp{ get; set;}=12345;
{{value: TestProp}}
Debug the application in Visual Studio
Make any small change in the code, anywhere in the application. For example, add a useless local variable to a method somewhere
Click the Hot Reload button (flame icon)
Optional: To make sure that the example page will be recompiled, change the content of the dothtml slightly in any way. This is not necessary if the page wasn't compiled yet
Hot Reload can break value bindings to
Nullable<T>
as well as certain others when the page markup is (re)compiled. The compilation fails with the exceptionSystem.NotSupportedException: Method BoxingUtils.Box cannot be translated to Javascript
.The shortest repro example is:
Usually I experience this with any binding to a property of type
int?
, for example:dothtml
slightly in any way. This is not necessary if the page wasn't compiled yetHere is the full error page from my environment:
dotvvm-error-NotSupportedException.zip
The text was updated successfully, but these errors were encountered: