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

Apple Silicon Error (node_modules/esbuild) #9

Open
EthereumFunctionalist opened this issue Jan 22, 2024 · 3 comments
Open

Apple Silicon Error (node_modules/esbuild) #9

EthereumFunctionalist opened this issue Jan 22, 2024 · 3 comments

Comments

@EthereumFunctionalist
Copy link

When installing this project, there is a pervasive error that is extremely difficult to fix for Apple Silicon. I have consulted multiple people in the ICP dev community and nobody was able to give a solution. When researching this issue no solutions I found online were helpful.

npm run setup

m2cannistererror

@rvanasa
Copy link
Owner

rvanasa commented Jan 22, 2024

I've run into similar issues in the past; this is a known issue with Vite / esbuild. Your best chance at fixing this would be to open an issue on vitejs/vite in case they can help you find a solution.

Alternatively, you could try alternate starter projects such as icp-hello-world or icp-hello-world-rust. These repositories are under active development, but they might work due to using Webpack in place of Vite.

If nothing else works, I suppose you could also try the online Gitpod environment.

Hopefully this helps! I will keep this in mind for you in case there's eventually a good way to fix this.

@EthereumFunctionalist
Copy link
Author

EthereumFunctionalist commented Jan 23, 2024

Hello Rvanasa, that is sad to hear because ARM processors are rapidly taking over computing. ICP canisters work fine on my machine as long as they dont use vite. The problem for me though is that I am particularly interested in your project

What do you think about replicating your project in Next.js? I am not super skilled with Java script frameworks like yourself but I am wondering if the same result can be achieved on a different framework.

Regards,
J

@rvanasa
Copy link
Owner

rvanasa commented Jan 23, 2024

What do you think about replicating your project in Next.js? I am not super skilled with Java script frameworks like yourself but I am wondering if the same result can be achieved on a different framework.

This is certainly possible. Somebody created an Next.js + IC starter project at one point, and it would be feasible to add features from this repository such as live-reloading with the Motoko Dev Server. I currently don't have the bandwidth to personally set this up in the same way as this repository, but I'll keep you posted!

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

2 participants