pwambach / angular-canvas-painter

Angular.js directive to paint on a canvas on desktop or touch devices
MIT License
116 stars 35 forks source link

angular-canvas-painter webpack #32

Open Helaers opened 8 years ago

Helaers commented 8 years ago

Angular 1.5.8 Webpack 1.13.2

I'm importing the lib as followed:

import angularCanvasPainter from 'angular-canvas-painter';
export default angular
    .module('projectName', [
        // 3th party
        angularCanvasPainter,

        // application
        components,
        common,
    ])
    .directive('app', appComponent)
;

and getting this error:

Argument 'module' is not a function, got Object

Is webpack not supported? How can I fix this?