Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Unexpected response from worker: undefined #35

Closed
s-kris opened this issue Jun 18, 2022 · 3 comments
Closed

TypeError: Unexpected response from worker: undefined #35

s-kris opened this issue Jun 18, 2022 · 3 comments

Comments

@s-kris
Copy link

s-kris commented Jun 18, 2022

I'm using ts-node to run nextjs app (custom server).

yarn dev: ts-node --project tsconfig.server.json server/index.ts

Using tsx throws the below error

/Users/<path>/node_modules/jest-worker/build/workers/ChildProcessWorker.js:264
        throw new TypeError('Unexpected response from worker: ' + response[0]);
              ^

TypeError: Unexpected response from worker: undefined
    at ChildProcessWorker._onMessage (/Users/<path>/node_modules/jest-worker/build/workers/ChildProcessWorker.js:264:15)
    at ChildProcess.emit (node:events:527:28)
    at emit (node:internal/child_process:938:14)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)

p.s: thanks for bringing this :)

@privatenumber
Copy link
Owner

Do you mind providing a minimal reproduction repository?

I'm not sure what exact setup and commands you're running.

Also note, tsx currently doesn't support the --project flag.

@s-kris
Copy link
Author

s-kris commented Jun 21, 2022

Sorry, I'm not able to replicate the same error on the starter: https://github.com/s-kris/test-tsx-nextjs-custom-server

I will try to add the packages one by one from my main project to this starter to identify which one is causing the issue.
By looks of it, I think, it must be the testing library.

@privatenumber
Copy link
Owner

Thanks.

Will reopen when reproduction is provided.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants