Hi, I'm using PNotify in a JSPM based project, and the latest version breaks the AMD compatibility layer of SystemJS (that JSPM itself use to load dependencies).
SystemJS seems unable to track this on-the-fly dependency in his internal registry, thus the next define call fails to resolve it properly.
Removing the previous block of code, and replacing the main define with the following code restore SystemJS compatibility.
Another option could be to try using the CommonJS format with SystemJS, but all my other external libraries are AMD and I'd prefer to stick with it.
Anyway, that pnotify-root define is only syntactic sugar and, at least IMHO, removing it shouldn't harm anyone.
Hi, I'm using PNotify in a JSPM based project, and the latest version breaks the AMD compatibility layer of SystemJS (that JSPM itself use to load dependencies).
The issue reside in the first define call
SystemJS seems unable to track this on-the-fly dependency in his internal registry, thus the next define call fails to resolve it properly. Removing the previous block of code, and replacing the main define with the following code restore SystemJS compatibility.
Another option could be to try using the CommonJS format with SystemJS, but all my other external libraries are AMD and I'd prefer to stick with it. Anyway, that pnotify-root define is only syntactic sugar and, at least IMHO, removing it shouldn't harm anyone.
Thanks!