Problems with getAllTokenIds

Hi guys i have a problem with “getAllTokenIds”, i think my code is well but when i go to the web in the console doesnt display the tokends id. I upload a image of my code Ty for your time.

I post the web’s console:

You are using the old way of initializing moralis. Use Moralis.start({appId: APP_ID, serverUrl: SERVER_URL)} like the error suggests