canvasSpliner icon indicating copy to clipboard operation
canvasSpliner copied to clipboard

Uncaught TypeError: CanvasSpliner is not a constructor

Open sam-thecoder opened this issue 6 years ago • 0 comments

I know this error comes from not importing the CanvasSpliner what I did is include it before the script

<script src="/static/js/CanvasSpliner.min.js"></script>

<script>
	$(function() {
		var cs = new CanvasSpliner("can", 300, 300);
	});

then try to run it and I get this error. It might be I need to compile the code since my setup is using django as the backend and mainly jquery on the front-end. Running on a fairly up to date browser.

This is the error:

color-editor:89 Uncaught TypeError: CanvasSpliner is not a constructor
    at HTMLDocument.<anonymous> (color-editor:89)
    at k (jquery.js:15)
    at Object.fireWith [as resolveWith] (jquery.js:15)
    at Function.ready (jquery.js:15)
    at HTMLDocument.D (jquery.js:15)

as the repo maker I'd like your take on possible ways to fix this.

sam-thecoder avatar Feb 25 '19 12:02 sam-thecoder