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

Error: Cannot find module '@good-fences/api-darwin-arm64' (OSX M1) #47

Open
tianhuil opened this issue Apr 19, 2023 · 3 comments
Open

Comments

@tianhuil
Copy link

tianhuil commented Apr 19, 2023

Hi @Adjective-Object @flickyiyo, I get the following error when I run good fences on OSX M1:

> ts-node script/good-fences.ts
Error: Cannot find module '@good-fences/api-darwin-arm64'

Can we build and release a package like the x64 one (https://www.npmjs.com/package/@good-fences/api-darwin-x64)?

@tkambler
Copy link

tkambler commented Nov 9, 2023

Also, for Alpine containers:

Error: Cannot find module '@good-fences/api-linux-arm64-musl'

@Adjective-Object
Copy link
Owner

This would require cross-compilation -- right now we only do 3 builds which target the platform they're running on (e.g. napi build)

There's a reference project that does a full matrix of builds here we may be able to crib from: https://github.com/napi-rs/cross-build/tree/main/.github/workflows

@flickyiyo is this something you have bandwidth for? I heard you might already be taking some time to look at this from jarmit, but am not sure if I am remembering correctly.

@madriesen
Copy link

Same issue here with linux-x64-musl using bitbucket pipelines and docker.

    Test suite failed to run
    Cannot find module '@good-fences/api-linux-x64-musl' from 'node_modules/.pnpm/@good-fences+api@0.12.0/node_modules/@good-fences/api/index.js'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants