The custom node tutorial at https://docs.n8n.io/integrations/creating-nodes/build/programmatic-style-node/ is incorrect/outdated in several respects:
OptionsWithUri instead of IRequestOptions
- Strings for input/output instead of types, e.g.
input: ['main'] instead of input: [NodeConnectionType.Main]
- Imports
IExecuteFunctions from n8n-core instead of from n8n-workflow
Fixing these three will result in a buildable, working node, but the article may be outdated in more places.
The custom node tutorial at https://docs.n8n.io/integrations/creating-nodes/build/programmatic-style-node/ is incorrect/outdated in several respects:
OptionsWithUriinstead ofIRequestOptionsinput: ['main']instead ofinput: [NodeConnectionType.Main]IExecuteFunctionsfromn8n-coreinstead of fromn8n-workflowFixing these three will result in a buildable, working node, but the article may be outdated in more places.