The deployment fails when using toast notifications if the vue-toastification library is not in the build in the nuxt.config. So we need to move it into the proper place.
Success
The app successfully deploys on Netlify with a test toast and then removing the toast after the test has been done.
Requirements
[x] Move the toast library to the build in the nuxt.config
[x] Test that it can deploy with a toast notification
[x] Remove the test case
Context
I have tried many things to get the toast notifications to not fail on deployment. So we will do this for now as a patch to not block us moving forward using the toasts with another solution is found. The following have been tried.
Follow the documentation of registering it into Nuxt from the library itself
Registering the plugin
Making a custom module
Making a Pinia store for the toasts
In all the above cases the deployment on Netlify when using toasts failed.
Problem
The deployment fails when using toast notifications if the
vue-toastification
library is not in the build in thenuxt.config
. So we need to move it into the proper place.Success
The app successfully deploys on Netlify with a test
toast
and then removing the toast after the test has been done.Requirements
toast
library to the build in thenuxt.config
Context
In all the above cases the deployment on Netlify when using toasts failed.