Hi there,
a user complained about not being able to install my advanced-flow-blocks on selfhosted n8n in version 1.35.0. with error message " invalid input syntax for type integer: “2.3"”
I myself am running 1.33.1 and have no comparable issue.
Checked my code and found 2.3 in several positions when configuring the INodeTypeDescription:
description: INodeTypeDescription = {
displayName: 'For',
name: 'for',
icon: 'file:For.svg',
group: ['route'],
version: [1, 2, 2.1, 2.2, 2.3],
description:
'Base for a For-Loop',
defaults: {
name: 'FOR'
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
inputs: ['main','main'],
inputNames: ['dataIn','counterIn'],
requiredInputs: '={{ $version < 2.3 ? undefined : 1 }}',
outputs: ['main', 'main', 'main'],
outputNames: ['finished', 'dataOut','counterOut'],
...
Full code here: n8n-nodes-advanced-flow-blocks/nodes/For/For.node.ts at master · dev4Agriculture/n8n-nodes-advanced-flow-blocks (github.com)
**Question: **
I’m not 100% certain anymore, what this “version”-Stuff was for, so my question is:
Was anything changed between 1.33.1 and 1.35.0; e.g. a VersionUpdate like from 2.3 to 2.4 that might explain the issue?