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

anchor run test throws TypeError: mixin.wrap is not a function #1

Open
YikSanChan opened this issue Dec 12, 2021 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@YikSanChan
Copy link

Walking thru https://lorisleiva.com/create-a-solana-dapp-from-scratch/getting-started-with-solana-and-anchor on my macOS (non M1). Everything goes well, except for:

$ anchor run test
yarn run v1.22.17
warning package.json: No license field
$ /Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/.bin/ts-mocha -p ./tsconfig.json -t 1000000 'tests/**/*.ts'
/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/yargs/build/index.cjs:2772
                throw err;
                ^

TypeError: mixin.wrap is not a function
    at /Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/cliui/build/index.cjs:169:33
    at Array.forEach (<anonymous>)
    at UI.rasterize (/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/cliui/build/index.cjs:165:13)
    at UI.rowToString (/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/cliui/build/index.cjs:95:14)
    at /Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/cliui/build/index.cjs:85:18
    at Array.forEach (<anonymous>)
    at UI.toString (/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/cliui/build/index.cjs:84:19)
    at Object.help (/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/yargs/build/index.cjs:1032:19)
    at Object.self.cacheHelpMessage (/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/yargs/build/index.cjs:1072:34)
    at Object.runCommand (/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/yargs/build/index.cjs:450:42)
    at Object.parseArgs [as _parseArgs] (/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/yargs/build/index.cjs:2706:53)
    at Object.parse (/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/yargs/build/index.cjs:2278:29)
    at Object.exports.main (/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/mocha/lib/cli/cli.js:78:6)
    at Object.<anonymous> (/Users/yiksanchan/source/yiksanchan/solana-twitter/node_modules/mocha/bin/mocha:141:29)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47

Node.js v17.2.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Any idea how to address this? Thanks!

@YikSanChan YikSanChan changed the title TypeError: mixin.wrap is not a function anchor run test throws TypeError: mixin.wrap is not a function Dec 12, 2021
@lorisleiva lorisleiva added the help wanted Extra attention is needed label Dec 13, 2021
@lorisleiva
Copy link
Owner

Hi 👋

Thanks for raising this. I'm afraid I'm not sure why you'd get this error. I tried to Google it but not much came from it. I'll leave this open in case someone else can help. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants