I’m trying to port a Construct 2 plugin to Construct 3. Basically, I’ve taken the singleGlobalPlugin example and filled in my actions, conditions, expressions – and of course the language-files, addon, aces etc. too.
However, I get “ReferenceError: $ is not defined“ in the following line which I've placed in the constructor in the c3runtime/instance.js file:
this.connection = $.hubConnection('http://mydomain.com');
I used to have this line in instanceProto.onCreate in Construct 2. It relies on a couple of scripts which I’ve added with AddFileDependency in plugin.js and also in DEPENDENCY_FILES.
Am I missing a reference, or am I doing something else wrong here?