No implicit cast from 'MainView' to Uno.UX.PropertyObject

Hi,

I’m getting these errors when I try to preview the app. The thing is, when I delete every line but the app part and save and preview it builds and after that if I do Ctrl+z and redo deleted lines and Ctrl+s everything works with no errors. But I suspect something is wrong, I’m not getting some variable values that definitely should be there. That’s why I reopen and re-preview the app from zero. But it’s not working. Also tried with uno clean and previewing but no luck.

I have Momentjs working as an external code. Other than that, using charts.

build\Local\Designer\cache\ux11\charting.unoproj.g.uno(39.66): E2047: No implicit cast from 'MainView' to Uno.UX.PropertyObject
build\Local\Designer\cache\ux11\charting.unoproj.g.uno(40.87): E2028: 'MainView' and Uno.UX.PropertyObject are not compatible types
build\Local\Designer\cache\ux11\charting.unoproj.g.uno(41.129): E2028: 'MainView' and Uno.UX.PropertyObject are not compatible types
build\Local\Designer\cache\ux11\MainView.g.uno(16.13): E3102: There is no identifier named 'OnPropertyChanged' accessible in this scope. Did you mean 'OnPropertyChanged' (as in 'Uno.UX.IPropertyListener.OnPropertyChanged(Uno.UX.PropertyObject,Uno.UX.Selector)'), 'OnPropertyChanged' (as in 'Uno.UX.PropertyObject.OnPropertyChanged(Uno.UX.Selector,Uno.UX.IPropertyListener)') or 'OnPropertyChanged' (as in 'Uno.UX.PropertyObject.OnPropertyChanged(Uno.UX.Selector)'), or one of 4 other similar candidates?
(1.1 s)

Build completed in 3.32 seconds
4 errors

Hi Clay,

could you provide a complete reproduction of the project that does this? Also, details on Fuse version, operating system your on (including version) etc. would help.

Ok, found out what it is, since javascript errors are easy find out but ux codes are not.

There was a line in ux code

<string ux:Property="Selected" />

after deleting that line, errors are gone.

Thanks