angular-skycons icon indicating copy to clipboard operation
angular-skycons copied to clipboard

webpack use

Open luigi-13 opened this issue 8 years ago • 2 comments

Hello, First of all thank you for your work, this plugin is very cool.

The only problem is that I can not integrate it with webpack and the npm repository.

In my entry file i put this line :

import Skycons from 'skycons' ;

and i have one error in my console when i call the plugin like this :

var skycons = new Skycons({"color": color}); skycons.add(element[0], newValues); skycons.play();

The console error :

TypeError: skycons.add is not a function

Do you have a solution ? thank you

luigi-13 avatar Feb 16 '17 08:02 luigi-13

I have the same issue

ArtekMisiek avatar Apr 18 '18 09:04 ArtekMisiek

I had this issue but was able to get rolling by using this declaration instead:

const Skycons = require("skycons")(window)

kylekeesling avatar Apr 18 '18 12:04 kylekeesling