Please help me with Type Error

Hello,

I am doing an autosave, it saves on start of each map. I just created an event with a script call.

DataManager.saveGame(1)It saves properly, but when I try to load it I get the error: Type Error: Cannot read property 'name' of null

Please, can someone help me?

Best regards.
I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.
try clearing your save files, make a new game and then save and load as normal.
I had no file saves and when this error showed up for the first time...

Anyway i did what you said and did not work...
does it do the same when you save as normal? from menu.
No, it loads normally.
If you open up the game in the browser (Chrome), you can view the backtrace of the error and try and figure out what happens. To do this, open the game in the browser and continue to the point where you are getting the null error.

Right before the null error occurs, open the developer tools in Chrome (F12) and click on the sources tab. When the error occurs, you should see a list of calls in the console. Investigate.

Original thread: https://forums.rpgmakerweb.com/threads/please-help-me-with-type-error.54678/