Code runs fine but errors appear in Wix code editor

I haven’t opened up the editor for my Wix site in a few months now so I’m not sure if something has changed, but I went back to look at the code for my registration form and despite still running completely normally I’ve got this error under some stacked promises that states:
Property ‘then’ does not exist on type ‘Promise | “INVALID DATA”’. Property ‘then’ does not exist on type ‘“INVALID DATA”’.

A second error on the same page for some reason has issues with me conjugating strings together. It states:
The left-hand/right-hand side of an arithmetic operation must be of type ‘any’, ‘number’, ‘bigint’ or an enum type.

So my code hasn’t changed, still executes fine, but has started having these errors. I don’t have errors in any other code just the script for my registration page so why is this happening? I just don’t want this to start happening elsewhere to make editing my code messy in the future with not knowing what works and what doesn’t. Is there any way I can get rid of these errors?

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.

Okay, thanks a lot. I’ve gave the post a follow :slight_smile: