Errors after the update Figma

After the Figma application was updated so much, my scripts stopped working. In general, the plugin stopped working correctly

After launching the plugin, it gives errors:
Cannot read properties of null (reading 'style')

I have already tried options from the Internet and nothing helps.
Is it possible to solve this problem?

Usually the console will show which line and position the error occurs on. Make sure the element exists in the DOM tree before reading/changing its properties.