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

No native build was found for platform=darwin arch=arm64 #82

Open
minchopm opened this issue Aug 9, 2023 · 3 comments
Open

No native build was found for platform=darwin arch=arm64 #82

minchopm opened this issue Aug 9, 2023 · 3 comments

Comments

@minchopm
Copy link

minchopm commented Aug 9, 2023

I am working on Mac M1 chipset, after executing "prebuild-darwin-x64+arm64": "prebuildify -t 8.14.0 --napi --strip --arch x64+arm64",
I got this error:
No native build was found for platform=darwin arch=arm64 runtime=node abi=111 uv=1 armv=8 libc=glibc node=19.8.1

@Tadeuchi
Copy link

Hi, I'm facing similar problem.
When running classic-level on next.js there is an error:
Error: No native build was found for platform=darwin arch=arm64 runtime=node abi=108 uv=1 armv=8 libc=glibc node=18.14.0

@callicles
Copy link

I got the same issue with platform=darwin and arch=x64

@michel-kraemer
Copy link

I had the same problem and solved it by adding serverExternalPackages to my next.config.ts:

const config: NextConfig = {
  ...
  serverExternalPackages: ["classic-level"],
  ...
}

export default config

See also:
https://nextjs.org/docs/app/api-reference/next-config-js/serverExternalPackages

Note that I'm using Next.js 15. If you're using an older version, this setting might be under experimental with a slightly different name. See here:
https://nextjs.org/docs/14/app/api-reference/next-config-js/serverComponentsExternalPackages

More information about externals:
https://webpack.js.org/configuration/externals/

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