I have trouble finding the error while trying to run truffle test for name

Viewed 9

Compiling your contracts...

Compiling ./src/contracts/Token.sol Artifacts written to /tmp/test--579-6AbV9NTHR3a5 Compiled successfully using:

  • solc: 0.5.16+commit.9c3226ce.Emscripten.clang SyntaxError: /mnt/c/pr0/blockchain-developer-bootcamp/test/.babelrc: Error while parsing JSON - Bad number at line 1 column 3 of the JSON5 data. Still to read: "babelrc\r\n{\r\n"presets" at error (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/json5/lib/json5.js:56:25) at number (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/json5/lib/json5.js:212:17) at value (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/json5/lib/json5.js:491:20) at Object.parse (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/json5/lib/json5.js:508:18) at ConfigChainBuilder.addConfig (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/babel-core/lib/transformation/file/options/build-config-chain.js:150:65) at ConfigChainBuilder.findConfigs (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/babel-core/lib/transformation/file/options/build-config-chain.js:96:16) at buildConfigChain (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/babel-core/lib/transformation/file/options/build-config-chain.js:61:13) at OptionManager.init (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/babel-core/lib/transformation/file/options/option-manager.js:354:58) at compile (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/babel-register/lib/node.js:103:45) at loader (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/babel-register/lib/node.js:144:14) at Object.require.extensions. [as .js] (/mnt/c/pr0/blockchain-developer-bootcamp/node_modules/babel-register/lib/node.js:154:7) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at /home/nemo/.nvm/versions/node/v14.16.0/lib/node_modules/truffle/node_modules/mocha/lib/mocha.js:417:36 at Array.forEach () at Mocha.loadFiles (/home/nemo/.nvm/versions/node/v14.16.0/lib/node_modules/truffle/node_modules/mocha/lib/mocha.js:414:14) at Mocha.run (/home/nemo/.nvm/versions/node/v14.16.0/lib/node_modules/truffle/node_modules/mocha/lib/mocha.js:1015:10) at /home/nemo/.nvm/versions/node/v14.16.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/testing/Test.js:156:1 at new Promise () at Object.run (/home/nemo/.nvm/versions/node/v14.16.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/testing/Test.js:155:1) at processTicksAndRejections (internal/process/task_queues.js:93:5) at Object.module.exports [as run] (/home/nemo/.nvm/versions/node/v14.16.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/test/run.js:115:1) at runCommand (/home/nemo/.nvm/versions/node/v14.16.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/command-utils.js:201:1) Truffle v5.5.31 (core: 5.5.31) Node v14.16.0

I have ran through my .Json package to see if there is any syntax errors for babel registry and can not find any on the said line 1 column 3. I have used dependencies provided by Bootcamp class. Any help will be much appreciated thanks for looking.

0 Answers
Related