Skip to content

fix: replace NodeConnectionTypes.Main with string literal for compatibility#8

Merged
chiemerieokorie merged 1 commit into
mainfrom
fix/replace-node-connection-types
Mar 6, 2026
Merged

fix: replace NodeConnectionTypes.Main with string literal for compatibility#8
chiemerieokorie merged 1 commit into
mainfrom
fix/replace-node-connection-types

Conversation

@chiemerieokorie

Copy link
Copy Markdown
Contributor

Summary

  • Replaces NodeConnectionTypes.Main with string literal 'main' in scraperNode.ts and WeldJobs.node.ts
  • Improves compatibility with older n8n-workflow versions where NodeConnectionTypes may not be exported
  • Addresses "Cannot set properties of undefined" error some users encounter during community node installation

Test plan

  • pnpm build — clean compile
  • pnpm lint:n8n — n8n eslint rules pass
  • pnpm test — all 323 tests pass

🤖 Generated with Claude Code

…bility

Use string literal 'main' instead of NodeConnectionTypes.Main for
inputs/outputs to improve compatibility with older n8n-workflow versions
where NodeConnectionTypes may not be exported.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chiemerieokorie chiemerieokorie merged commit dd91c8c into main Mar 6, 2026
1 check passed
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.

1 participant