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

yarn test gives error #20

Open
singlautsav opened this issue Nov 25, 2021 · 1 comment
Open

yarn test gives error #20

singlautsav opened this issue Nov 25, 2021 · 1 comment

Comments

@singlautsav
Copy link

test/shared/fixtures.ts:16:29 - error TS2307: Cannot find module '../../build/PancakeRouter02.json'. 16 import PancakeRouter02 from '../../build/PancakeRouter02.json' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at createTSError (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/ts-node/src/index.ts:421:12) at reportTSError (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/ts-node/src/index.ts:425:19) at getOutput (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/ts-node/src/index.ts:530:36) at Object.compile (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/ts-node/src/index.ts:735:32) at Module.m._compile (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/ts-node/src/index.ts:814:43) at Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Object.require.extensions.<computed> [as .ts] (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/ts-node/src/index.ts:817:12) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/home/utsavsingla/pancake_trial/pancake-swap-periphery/test/ExampleFlashSwap.spec.ts:65:18) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Module.m._compile (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/ts-node/src/index.ts:814:23) at Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Object.require.extensions.<computed> [as .ts] (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/ts-node/src/index.ts:817:12) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at /home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/mocha/lib/mocha.js:334:36 at Array.forEach (<anonymous>) at Mocha.loadFiles (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/mocha/lib/mocha.js:331:14) at Mocha.run (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/mocha/lib/mocha.js:809:10) at Object.exports.singleRun (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/mocha/lib/cli/run-helpers.js:108:16) at exports.runMocha (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/mocha/lib/cli/run-helpers.js:142:13) at Object.exports.handler (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/mocha/lib/cli/run.js:292:3) at Object.runCommand (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/yargs/lib/command.js:242:26) at Object.parseArgs [as _parseArgs] (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/yargs/yargs.js:1087:28) at Object.parse (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/yargs/yargs.js:566:25) at Object.exports.main (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/mocha/lib/cli/cli.js:68:6) at Object.<anonymous> (/home/utsavsingla/pancake_trial/pancake-swap-periphery/node_modules/mocha/bin/mocha:164:29) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981: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 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@goldentechie
Copy link

goldentechie commented Feb 17, 2022

import PancakeRouter01 from '../../build/PancakeRouter01.json'
import PancakeMigrator from '../../build/PancakeMigrator.json'
import PancakeRouter02 from '../../build/PancakeRouter02.json'
import RouterEventEmitter from '../../build/RouterEventEmitter.json'

Update PancakeRouter02 to PancakeRouter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants