-
Notifications
You must be signed in to change notification settings - Fork 7
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
Convert component names to camelCase #2
Comments
fixed in v0.1.1 |
Hi, Just thought id give this plugin a go again see how i got on. its coming from this component if its something I have done, not sure really! class NumComponent extends Rete.Component {
constructor() {
super("Number");
this.allocation = ['Math'];
this.task = {
outputs: {num: "output" }
}
}
builder(node) {
var out1 = new Rete.Output('num', "Number", numSocket);
var ctrl = new TextControl(this.editor, 'num', false, 'number');
return node.addControl(ctrl).addOutput(out1);
}
worker(node, inputs, outputs) {
return {num: node.data.num};
}
code(node, inputs, add){
console.log("add - \nnode", node, "\ninputs", inputs, "\nadd", add);
add('num', node.data.num);
}
} |
@trsh how do you building your app? I guess you haven't added the |
ok so yea i did wonder that, I havnt done a search for case.js or what ever it would be. will do that now. if you have a link to where i can find EDIT: is this it? -https://www.npmjs.com/package/case |
@Ni55aN no idea what are u talking about |
its interesting, I added case.js to my project and now i get an error pointing to do you think the error is related? EDIT1: so if i remove i know EDIT2: ok so im just talking out loud here, so please tell me if i am talking rubbish - when I use case.js, it causes the error with alight render plugin at this line - when I remove case.js and console log out alight of the above line, it no longer comes back as undefined and i dont get the error. so am i right in thinking something in either case.js or code plugin is blocking the alight var being populated?
getting the camel undefined error with this now. really confused. its prob a case of late in the week, brain is dead haha |
Now you need to include Angular light script. I propose you use build tools (webpack, parcel, rollup) to get rid of headaches when including dependencies. |
|
that's exactly what I'm talking about |
Place it before |
hmm doesnt seem to fix the issue |
How do you build your app? |
old fashioned way. I dont use npm etc to build it. |
Stop doing it :) |
I know but i am in too deep to convert! |
The further, the harder it will be. Case.min.js should have a global |
yea from the CDN. yea so thats what I have found out. it doesnt expose Case for some reason. trying to find the best way to expose its Case variable in the correct way without taking it out of its function, otherwise id have to rename its _ variable as I am using lodash which would collide |
Just migrate to Webpack 🥇 |
maybe one day when I get bored 🤣 I fixed it for now by removing it from an anonymous function and renaming the _ variable... dirty but will make it better later haha. thanks for your assistance 👍 |
No description provided.
The text was updated successfully, but these errors were encountered: