OrgChart icon indicating copy to clipboard operation
OrgChart copied to clipboard

Uncaught TypeError: $(...).orgchart is not a function

Open valentinomariotto opened this issue 3 years ago • 1 comments

Hi! I keep getting this error. I made sure that the jquery.orgchart.js is loaded (using console.log('blah');). JQuery 3.5.1 is also loaded.

This is how I'm calling orgchart:

var oc = $('#affiliates_tree').orgchart({
				'data' : datascource,
				'nodeId': 'id',
				'nodeTitle': 'name',
				'nodeContent': 'rank' });

The package was installed in Laravel with npm and it's loaded in the document <head> using the app.blade.php file.

valentinomariotto avatar Jul 08 '22 15:07 valentinomariotto

fixed by downloading the source from this repo. The files installed by npm were different

valentinomariotto avatar Jul 11 '22 13:07 valentinomariotto