"Let's build a mobile app" database instructions are wrong

Hi,
I did follow step by step the tutorial to link my own database using an environment variable in figma, but it seems like the instructions are wrong because it’s not working when running the teacher’s code.
Could it be because he is using an outdated firebase version when he recorded the video ? Or do you have any other idea to fix the issue ?

Here is the error message :

!

SyntaxError: Invalid or unexpected token

!

[2025-04-14T17:33:44.571Z] @firebase/database: FIREBASE FATAL ERROR: Can’t determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp().

!

Error: FIREBASE FATAL ERROR: Can’t determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp().

Hi, I’m getting the same error messages. It seems like the issue lies with Scrimba env key/value not talking to Firebase; DATABASE_URL comes up as undefined in console. I’m also not able to delete the database key created in Scrimba, after pushing the trash icon, the pop up just disappears the key remains when going back in to check. Were you able to find any solutions? If not, does anyone have ideas? Thanks!