Many errors suddenly

I am suddenly getting a lot of errors in my code and things that used to work no longer do or there are errors that work, and if I follow the error it no longer works.

For example I have a number of errors saying I can’t assign a number to a string such as assigning
50 to a value of a number type input. It works if I ignore the error and doesn’t if I change it.

A bigger issue is I am getting errors on simple functions that I relied on. For example I have a dataset and I am checking to see if there is an entry. If there isn’t create a new one so the user can input data.

export function MemberPlanner_ready () {
var myPlan = $w ( ‘#MemberPlanner’ ). getCurrentItem ()
console . log ( “Total Count” , $w ( ‘#MemberPlanner’ ). getTotalCount ())
if ( $w ( ‘#MemberPlanner’ ). getTotalCount () === 0 ) {
console . log ( “No Plan” )
$w ( ‘#MemberPlanner’ ). new ()
}
}

I get an error on .new() saying it is not a valid function of type DataSet. I have this multiple places in my code and it doesn’t seem to work anywhere anymore. Did something change? How do you now create a new entry for a dataset? the API Reference still says .new() is valid

Permission error? Check both database setting and your dataset element

no permission error, just in the IDE saying that .new() isn’t even a function. There are a bunch of things like this just all of a sudden. .new() doesn’t show up at all in selecting what I can do on a dataset, .getCurrentItem() shows up. I do have .new() set to read/write

No answer but the same problem. This could put me out of business.