You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command fails with an "Exec format error". Upon investigation, I found that the executable file (node_modules/@ember-data/codemods/codemods) is a Mach-O 64-bit arm64 executable, which is incompatible with Linux.
Looking at the package.json file within @ember-data/codemods, the bin entry points to this codemods file, and the build script seems to use Bun with the --target node flag:
My system is running Ubuntu and I am using Node.js v22.13. I am managing my project dependencies with pnpm.
It appears that the Bun build process, even with the --target node flag, is producing an executable that is not compatible with Linux and is being misinterpreted by pnpx as a Mach-O binary.
Could you please investigate this issue?
The text was updated successfully, but these errors were encountered:
Hi,
I'm encountering an issue when trying to run the Ember Data codemod on Linux using
pnpx
:The command fails with an "Exec format error". Upon investigation, I found that the executable file (node_modules/@ember-data/codemods/codemods) is a Mach-O 64-bit arm64 executable, which is incompatible with Linux.
Looking at the package.json file within @ember-data/codemods, the bin entry points to this codemods file, and the build script seems to use Bun with the --target node flag:
I've also tried running the codemod directly with Node.js:
This resulted in a SyntaxError: Invalid or unexpected token, indicating that the file is not standard JavaScript.
Additionally, I attempted to run it using bunx on Linux (Bun version 1.2.12):
My system is running Ubuntu and I am using Node.js v22.13. I am managing my project dependencies with pnpm.
It appears that the Bun build process, even with the --target node flag, is producing an executable that is not compatible with Linux and is being misinterpreted by pnpx as a Mach-O binary.
Could you please investigate this issue?
The text was updated successfully, but these errors were encountered: