Skip to content

fix: correct Google Sheets credential import path#64

Open
FelixNg1022 wants to merge 2 commits into
wespreadjam:mainfrom
FelixNg1022:fix/google-sheets-import
Open

fix: correct Google Sheets credential import path#64
FelixNg1022 wants to merge 2 commits into
wespreadjam:mainfrom
FelixNg1022:fix/google-sheets-import

Conversation

@FelixNg1022

Copy link
Copy Markdown

Summary

  • Fix ERR_MODULE_NOT_FOUND caused by importing defineOAuth2Credential from non-existent ../types/credentials.js
  • Changed to import from @jam-nodes/core, matching the pattern used by slack and social integrations

Closes #61

Test plan

  • Run pnpm build — verify no module resolution errors
  • Run node packages/playground/dist/index.js run end --mock --input '{"message":"done"}' — no ERR_MODULE_NOT_FOUND

Import defineOAuth2Credential from '@jam-nodes/core' instead of the
non-existent '../types/credentials.js' path, matching the pattern
used by other integrations (slack, social).

Closes wespreadjam#61
Copilot AI review requested due to automatic review settings April 3, 2026 22:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a runtime ERR_MODULE_NOT_FOUND in the Google Sheets integration by updating the defineOAuth2Credential import to use the public @jam-nodes/core entrypoint, consistent with other integrations.

Changes:

  • Replace non-existent relative import (../types/credentials.js) with @jam-nodes/core in Google Sheets credential definition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Tests cover:
- Credential definition imports correctly (the root cause of wespreadjam#61)
- Credential OAuth2 config and schema validation
- Node metadata for all 4 Google Sheets nodes
- Schema validation for all input schemas
- Executor credential guard (returns error without credentials)
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.

Google Sheets Integration imports non-existant credentials.js file causing ERR_MODULE_NOT_FOUND

2 participants