Skip to content

Conversation

@TheTrigger
Copy link

@TheTrigger TheTrigger commented Oct 1, 2025

Summary

  • Fixed TypeScript error where NodeConnectionType (a type) was being imported
    instead of NodeConnectionTypes (the actual constant)
  • Updated both ExampleNode and HttpBin nodes to use the correct import

Problem

The nodes were trying to use NodeConnectionType.Main which caused the
TypeScript error:

  • 'NodeConnectionType' only refers to a type, but is being used as a value here

Solution

Changed the import from NodeConnectionType to NodeConnectionTypes (with an
's') which is the actual exported constant from n8n-workflow.

Files changed

  • nodes/ExampleNode/ExampleNode.node.ts
  • nodes/HttpBin/HttpBin.node.ts

Note

Replace NodeConnectionType with NodeConnectionTypes and update inputs/outputs in both nodes.

  • Nodes:
    • nodes/ExampleNode/ExampleNode.node.ts and nodes/HttpBin/HttpBin.node.ts:
      • Switch import NodeConnectionType -> NodeConnectionTypes.
      • Update inputs/outputs to use NodeConnectionTypes.Main.

Written by Cursor Bugbot for commit 2e709b1. This will update automatically on new commits. Configure here.

@CLAassistant
Copy link

CLAassistant commented Oct 1, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@Joffcom Joffcom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, It has been on my list for a while

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants