I have been attempting to integrate NOTY with my Aurelia/Typescript application. After installing the package via NPM, I used requireJS to bring it into the application.
Despite my efforts, I have not been successful in making it work. I tried two different methods for importing it into the necessary file:
Attempt# 1
import * as Noty from 'noty';
Although this method seemed to create the correct references and there were no build errors, when attempting to use it, I encountered an error stating - "Noty is not a constructor"
.
Attempt 2
import Noty from 'noty'
This approach raised a complaint about lack of default exported members. I also tried another variation: import { Noty } from 'noty';
, but faced similar issues.
Any suggestions on how to successfully implement this would be greatly appreciated. Thank you in advance!
UPDATE#1
I have added the NOTY package reference in the aurelia.json file. https://i.sstatic.net/8Mi9k.png
However, the Noty package still fails to load. https://i.sstatic.net/Fkc1U.png
PS: I have included a link to the NOTY website in case anyone needs to look at the index.d.ts file.