Code runs fine but errors appear in Wix code editor

I think this is related to your issue…

https://www.wix.com/velo/forum/coding-with-velo/some-news-about-the-code-completion

https://www.wix.com/velo/forum/coding-with-velo/wix-editor-gone-crazy

Shay W (Moderator) will surely take a careful look at it (if not done yet).
Follow the post to be uptodate.