Skip to content

Navigation Menu

Sign in
Sign up

ERR_MODULE_NOT_FOUND fixed - #7

Open
racso-dev wants to merge 4 commits into
kunwarVivek:main from
racso-dev:main
Open

ERR_MODULE_NOT_FOUND fixed #7
racso-dev wants to merge 4 commits into
kunwarVivek:main from
racso-dev:main

Conversation

@racso-dev

@racso-dev racso-dev commented Feb 28, 2025
edited
Loading

Copy link
Copy Markdown

This pull request fixes several issues in the code:

  1. Resolves the ESM import errors
    -> Added the required .js extension to all local module imports. Since the project is configured as an ES module (type: module in package.json), explicit file extensions are required for local imports in the compiled JavaScript code.
    This fixes the runtime error: ERR_MODULE_NOT_FOUND when trying to run the built application.

  2. Error handling in GitHubIssueRepository:
    -> Added a "GitHub API error:" prefix to error messages in the create method to ensure consistency with GitHubProjectRepository.

  3. Integration tests in GitHubProjectManager.test.ts:
    -> Configured Nock to allow connections to api.github.com.
    -> Removed scope.isDone() assertions that were no longer necessary.
    -> Added logs to debug pending mocks.
    -> Modified the mocking approach to allow multiple calls to the same endpoints using .persist().

All tests now pass successfully.

Note that the code coverage remains below the required thresholds (80%), which may require future improvements.

Resolves #1

Copy link
Copy Markdown
Owner

It is showing conflicts with the current code.. can u pls resolve.

racso-dev commented Mar 10, 2025
edited
Loading

Copy link
Copy Markdown
Author

Maybe next time, merge ongoing PR before pushing new code, especially when It's a fix to make your project work...

Tzahile reacted with confused emoji

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Is this MCP project functioning

AltStyle によって変換されたページ (->オリジナル) /