I'm attempting to implement the following line:
import Clipboard = require('clipboard');
but I am encountering the following error message:
[default] c:\xampp\htdocs\isitperfect\node_modules\angular2-clipboard\src\clipboard.directive.ts:2:0
Import assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.
The issue lies within this line of code:
import Clipboard = require('clipboard');
I have tried:
import * as Clipboard from 'clipboard';
and experimented with other variations, but haven't been able to resolve it.
I am utilizing typescript 2.0.0
Any suggestions?