-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
App directory: Build fails due to secure-password
/ sodium-native
#4234
Comments
@tordans thanks for the issue! Regarding the missing
This error directly related to I would like more information,
|
The log output is all I get. When I run
App directory. This is the same in our app at https://github.com/FixMyBerlin/atlas-app/blob/blitz-app-directory which are are migrating to blitz from plain react ATM and the test app at https://github.com/FixMyBerlin/blitz-test
No, regular node. On the homepage bun says it cannot do the app directory, yet https://bun.sh/guides/ecosystem/nextjs. We are not planning to use bun for NextJS. |
Error: No native build was found for platform=darwin arch=arm64 runtime=node abi=108 uv=1 armv=8 libc=glibc node=18.8.0 webpack=true
secure-password
/ sodium-native
@siddhsuresh we tested in https://github.com/FixMyBerlin/atlas-app/tree/blitz-app-directory-without-secure-password to remove I could not find any discussion or issue on this topic at https://github.com/vercel/next.js. We are now trying to work around it by using an OAuth provider exclusively. |
We need this to work around blitz-js/blitz#4234 in order to test the pages in a build env.
I can confirm I had the same issue. SecurePassword depends on libsodium-native and requires that node-gyp be configured properly and with an installed Python, Visual Studio 2019 Dev Tools on Windows. This is not great for a lot of people and the developer experience is far from optimum with this. Could you please make this work with a fork/better maintained version that probably uses a newer version and without requiring node-gyp? We are evaluating blitz and this came out as a blocker. |
@guilt I agree, we are investigating the possible solutions that blitz can take up to solve this issue. |
What is the problem?
I am trying to
npm run build
my test app app on my MB Air M1 but the build fails.I was not able to find anything in the NextJS docs/help channels. So I wonder if there is some part of Blitz that is added to NextJS in App-Directory-Mode that fails for me?
Buildings with app directory seems to require very different code paths, because on https://bun.sh/guides/ecosystem/nextjs it says "The Next.js App Router currently relies on Node.js APIs that Bun does not yet implement.".
Paste all your error logs here:
Paste all relevant code snippets here:
https://github.com/FixMyBerlin/blitz-test
What are detailed steps to reproduce this?
npm run build
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response
The text was updated successfully, but these errors were encountered: