JavaScript library cannot save

JavaScript library cannot save.

ERROR

Save Failed

java.lang.NumberFormatException

Works OK on libraries created in the 8.5 client bot not any library created in older version.

Subject: I get the same results

Even if I create a new Javascript library, it’s saves with no code. When I try to add any Javascript and save I get an error with the details:Save Error

For imput string: “Error”