Jordan-Hall / nx-bun

https://jordan-hall.github.io/nx-bun/
Other
58 stars 6 forks source link

bun | task worker runner | nx bun: Cannot find module nx/src/native/native #27

Open ffMathy opened 4 months ago

ffMathy commented 4 months ago

Describe the bug I get the following error:

 >  NX   Cannot find module 'nx/src/native/native'

   Require stack:
   - /workspaces/redacted/node_modules/.pnpm/@nx-bun+task-worker-runner@0.0.4/node_modules/@nx-bun/task-worker-runner/src/lib/cache.js
   - /workspaces/redacted/node_modules/.pnpm/@nx-bun+task-worker-runner@0.0.4/node_modules/@nx-bun/task-worker-runner/src/lib/task-orchestrator.js
   - /workspaces/redacted/node_modules/.pnpm/@nx-bun+task-worker-runner@0.0.4/node_modules/@nx-bun/task-worker-runner/src/lib/default-tasks-runner.js
   - /workspaces/redacted/node_modules/.pnpm/@nx-bun+task-worker-runner@0.0.4/node_modules/@nx-bun/task-worker-runner/src/index.js
   - /workspaces/redacted/node_modules/.pnpm/nx@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.1/node_modules/nx/src/tasks-runner/run-command.js
   - /workspaces/redacted/node_modules/.pnpm/nx@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.1/node_modules/nx/src/command-line/run-many/run-many.js
   - /workspaces/redacted/node_modules/.pnpm/nx@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.1/node_modules/nx/src/command-line/run-many/command-object.js
   - /workspaces/redacted/node_modules/.pnpm/nx@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.1/node_modules/nx/src/command-line/nx-commands.js
   - /workspaces/redacted/node_modules/.pnpm/nx@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.1/node_modules/nx/bin/init-local.js
   - /workspaces/redacted/node_modules/.pnpm/nx@18.0.4_@swc-node+register@1.8.0_@swc+core@1.4.1/node_modules/nx/bin/nx.js
   Pass --verbose to see the stacktrace.

To Reproduce Steps to reproduce the behavior:

pnpm exec nx run-many --target=build --parallel=10

Expected behavior No error.

Additional context N/A

Jordan-Hall commented 4 months ago

I'll take a look. I'm finding bun. Not always finding modules even on standalone apps