apvarun / toastify-js

Pure JavaScript library for better notification messages
https://apvarun.github.io/toastify-js/
MIT License
2.13k stars 230 forks source link

doesen't work with electron #74

Closed KraXen72 closed 1 year ago

KraXen72 commented 3 years ago

sais Toastify is not a function

AStoker commented 3 years ago

Could you provide some more details? What does your setup look like and how are you using it?

KraXen72 commented 3 years ago

i imported the node module in an electron enviroment, and when trying one of the examples it said toastify is not a function

AStoker commented 3 years ago

Could you provide a code example of your project? It would help in reproducing the issue and resolving it

KraXen72 commented 3 years ago

idk man i gave up after i tried to use it for half and hour and just implemented custom toasts. basically i called them in preload, after dom has loaded, everything esle worked, every other library etc. i installed the node module, imported it throught require like you do in electron, and when i tried to use an example from the toastify documentation, it just said Toastify is not a function for whatever reason