yoeunes / toastr

:eyes: toastr.js notifications for Laravel
https://php-flasher.io
MIT License
375 stars 52 forks source link

Hello there is problem in jsdeliver cdn in egypt https://cdn.jsdelivr.net/npm/@flasher/flasher@1.2.4/dist/flasher.min.js is blocked in egypt what is the replacement ? #38

Closed mohamedSaidOthman closed 1 year ago

mohamedSaidOthman commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Severity

Related Issues

Additional context

yoeunes commented 1 year ago

Hi Mohamed,

Thanks for bringing this to my attention. As a workaround, please use the Unpkg CDN instead. You can do so by replacing the jsDelivr URL in your flasher config with the following Unpkg URL:

https://www.unpkg.com/@flasher/flasher@1.3.1/dist/flasher.min.js

Please let me know if this solves your issue. If you continue to encounter problems, don't hesitate to reach out.

Best Regards, Younes

mohamedSaidOthman commented 1 year ago

your new cdn works fine but there is issue after action no toastr appears gives me Console error flasher.min.js:1 Uncaught Error: Unable to resolve "toastr" notification factory, did you forget to register it?

yoeunes commented 1 year ago

Hey Mohamed 👋,

Thanks for your prompt response. The error you're encountering might be due to a version mismatch between your current version of the package and the latest one which is v1.3.1. and also it's important to maintain the same version number for both libraries to ensure compatibility.

Please use version 1.2.4 for both flasher and flasher-toastr. You can do this by replacing the URLs in your flasher configuration with the following:

https://www.unpkg.com/@flasher/flasher@1.2.4/dist/flasher.min.js https://www.unpkg.com/@flasher/flasher-toastr@1.2.4/dist/flasher-toastr.min.js

Please try this and let me know if the toastr notifications start working as expected. If not, don't hesitate to reach back out. I'm here to help.

Best Regards, Younes

mohamedSaidOthman commented 1 year ago

thank you very much, 1.2.4 version is worked successfully , thank you again. @yoeunes

yoeunes commented 1 year ago

Great to hear it's working now! Don't hesitate to reach out if you have any more issues or questions.