OpenFn / OpenFn/kit

worker: failed to load adaptor package.json during compilation

Open
#1,365 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
21
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
17

Description

One of the strangest errors I've ever seen:

Error occurred during compilation
R/T Run complete with status: crash
R/T CompileError: alert BD team: ENOENT: no such file or directory, open '/root/.openfn/worker/repo/node_modules/@openfn/language-mailgun_0.6.6/package.json'

I think during the compile stage, while loading the adaptor to pull down its type definitions, it's failing to load the package.json

So this is an installation bug? A corruption in the npm repo?

Could it be related to moving the repo folder?

Link to workflow

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the worker's compilation stage and the adaptor-loading path that reads package.json. Reproduce the failure using the linked workflow, then determine whether installation, npm package corruption, or moving the repository causes the missing file; done means the cause is confirmed and compilation no longer fails for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.