-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
[bug] ast-grep at v. 0.21.x doesn't work on MacOS Intel machines #1140
Comments
In napi 0.20.x publish workflow: https://github.com/ast-grep/ast-grep/actions/runs/8592707349/job/23543271091 In napi 0.22.x publish workflow: I guess the problem may be napi workflow's issue |
Confirm it is because GitHub runner now uses Apple Chip instead of Intel's. Reference napi-rs/napi-rs#2076 |
It looks like the fix will be available in 3.X |
Thanks @HerringtonDarkholme ! |
The version
2.1.0
of@ast-grep/napi
doesn't work on MacOS Intel machines.When using the latest version of
vite-plugin-lib-inject-css
, my build fails. The latest version of this package included@ast-grep/napi
as a dependency (at version2.1.0
).The error I was getting:
Error: Cannot find module @ast-grep/napi-darwin-x64
.When I looked at my
pnpm-lock.yaml
file I could see that there were options for different OS:I'm on MacOS, but not on an arm machine.
When I explicitly installed
@ast-grep/napi-darwin-x64
as a devDependency, then my build succeeds.It looks like
@ast-grep/napi-darwin-x64
is only available up to version0.20.5
but not beyond.Related issue.
Minimal reproduction..
Note, you'll need to be on a MacOS Intel machine.
The text was updated successfully, but these errors were encountered: