title: Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
body: <p>I am presenting this error when uploading the player to the server since locally it works fine.</p>
  <p>Let me explain a bit, the player locally shows the song that is playing, the one that is coming and the one that has already played, but when uploading to the server I get the following error: Uncaught TypeError: Cannot read properties of undefined (reading 'replace' ) in the following lines of code but I don't exactly understand why. I would like to know if you can guide me on this to finish this project and deliver it, thanks in advance.</p>
  <pre><code> let song = data.currentSong.replace(/&amp;apos;/g, '\'');
      currentSong = song.replace(/&amp;amp;/g, '&amp;');
  
      let artist = data.currentArtist.replace(/&amp;apos;/g, '\'');
      currentArtist = artist.replace(/&amp;amp;/g, '&amp;');
  </code></pre>