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

Creating a fresh site with an Atlas Addon frontend fails to spin up node app with Next 12 #28

Open
blakewilson opened this issue Jan 13, 2022 · 0 comments

Comments

@blakewilson
Copy link
Contributor

When creating a new site with the Atlas Local Addon, the frontend fails to spin up:

ready - started server on 0.0.0.0:10040, url: http://localhost:10040
info  - Loaded env from /Users/blakewilson/Local Sites/atlasfaustsite/app-node/.env.local
info  - Attempted to load @next/swc-darwin-x64, but an error occurred: dlopen(/Users/blakewilson/Local Sites/atlasfaustsite/app-node/node_modules/@next/swc-darwin-x64/next-swc.darwin-x64.node, 0x0001): tried: '/Users/blakewilson/Local Sites/atlasfaustsite/app-node/node_modules/@next/swc-darwin-x64/next-swc.darwin-x64.node' (code signature in <FFA6246B-5761-3AD5-AB55-34832928B990> '/Users/blakewilson/Local Sites/atlasfaustsite/app-node/node_modules/@next/swc-darwin-x64/next-swc.darwin-x64.node' not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.), '/usr/lib/next-swc.darwin-x64.node' (no such file)
error - Failed to load SWC binary for darwin/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc

This is because the Faust example recently started using Next 12, which uses a Rust based compiled with SWC instead of Babel. SWC requires a binary to be downloaded that is compatible with your system:

SWC requires a binary be downloaded that is compatible specific to your system. In some cases this binary may fail to load either from failing to download or an incompatibility with your architecture.

Here is Next.js' docs on this issue:
https://nextjs.org/docs/messages/failed-loading-swc

This is causing all node frontends created with the Atlas Local Addon to fail to spin up.

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

1 participant