Skip to content

Instantly share code, notes, and snippets.

View douglas-pires's full-sized avatar

Douglas Pires douglas-pires

View GitHub Profile
@douglas-pires
douglas-pires / fix-dyld-missing-symbol-called-errors-on-m1-macs.md
Created April 8, 2022 17:44 — forked from adrienjoly/fix-dyld-missing-symbol-called-errors-on-m1-macs.md
Fix `dyld[]: missing symbol called` errors when running Node.js programs on M1 Macs

Problem

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
// baseado em https://gist.github.com/joaohcrangel/8bd48bcc40b9db63bef7201143303937
export const cpf = (cpf: string) => {
const _cpf = cpf.replace(/[\s.-]*/g, '');
let sum = 0;
let rest = 0;
if (_cpf.match(/([0-9])(\d\1{9})/)?.length) return false;
for (let i = 1; i <= 9; i += 1) {
@douglas-pires
douglas-pires / cloudSettings
Created April 10, 2019 19:02
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-10T19:02:41.700Z","extensionVersion":"v3.2.8"}