After successfully installing the Nuxt Firebase plugin into my web app, everything works flawlessly when I run the generated folder (dist) locally. However, once I deploy it to the server, my web app fails to recognize any Nuxt Firebase commands and throws an error.
https://i.sstatic.net/SoZsu.png
Could there be a missing configuration or some other oversight on my part?
Below is the code snippet used to retrieve the token:
let currentToken;
try {
const permission = await Notification.requestPermission()
currentToken = await this.$fire.messaging.getToken();
//console.log(currentToken);
this.model.DeviceToken = currentToken;
} catch (e) {
console.error('An error occurred while retrieving token. ', e);
}