I've recently started working with Angular 4 and decided to create a basic app by forking the Angular quickstart. Now, I'm facing a challenge as I try to incorporate Rangy into my project.
In my package.json
, the dependencies are listed as follows:
"rangy": "^1.3.0",
"@types/rangy": "^0.0.27"
My expectation was that I could simply import Rangy like this:
import {RangySelection} from 'rangy';
However, attempting to do so results in the following error:
TS2306: File '/projects/mylittleapp/node_modules/@types/rangy/index.d.ts' is not a module.
Can anyone point out what I might be doing incorrectly?
EDIT:
I understand that the issue likely lies within SystemJS and how modules are imported there, but I'm struggling to find a solution...