Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: CanvasSpliner is not a constructor #3

Open
sam-thecoder opened this issue Feb 25, 2019 · 0 comments
Open

Uncaught TypeError: CanvasSpliner is not a constructor #3

sam-thecoder opened this issue Feb 25, 2019 · 0 comments

Comments

@sam-thecoder
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant