'What does "symbol not found in flat namespace '_cairo_fill'" mean?
What does the error Error: dlopen(/Users/me/Documents/metaplex-master/js/node_modules/canvas/build/Release/canvas.node, 0x0001): symbol not found in flat namespace '_cairo_fill'
mean?
I get this error when running ts-node ./packages/cli/src/candy-machine-cli.ts --version
.
How can I solve this.
I know there are some problems with canvas on M1 and I already have it setup for the arm64 architecture.
I also get this error when doing some other stuff with canvas on another projects. I am on a M1 pro MacBook Pro.
Solution 1:[1]
I solved this. It happened with metaplex, to be precise, the candy machine uses some node_module named canvas which struggles with arm64 arch. It is per default on x86_64 arch so you need to change it. There are some tutorials. Then if you want to use the candy machine you are still going to get this error. What you need to do next is just downgrade node to 14.18 and try again.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |