If you're getting this kind of error when running Node.js programs with binary dependencies that don't support M1 yet, e.g.:
$ yarn test
dyld[51175]: missing symbol called
dyld[51176]: missing symbol called| import React, { useState } from "react"; | |
| import { motion, AnimatePresence } from "framer-motion"; | |
| const items = [ | |
| "Community", | |
| "NFT Marketplace", | |
| "Partnerships", | |
| "Events", | |
| "Blog", | |
| ]; // Add more or remove but always try to make it odd or adjust the visibility from the css below |
| { | |
| "name": "example-proj", | |
| "version": "0.0.1", | |
| "description": "", | |
| "exports": { | |
| "./*": { | |
| "import": "./js/*.js", | |
| "require": "./js/*.cjs" | |
| } | |
| }, |
A brief example on how to use npx to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug