tact-lang / tact-emulator

@tact-lang/emulator testing library
MIT License
22 stars 8 forks source link

Could not resolve "@tact-lang/ton-abi" #11

Open akbariandev opened 5 months ago

akbariandev commented 5 months ago

I ran the install command mentioned in README and run the script but got below error.

Could not resolve "@tact-lang/ton-abi"

 node_modules/@tact-lang/emulator/dist/emulator/ContractSystem.js:25:26:
      25 │ const ton_abi_1 = require("@tact-lang/ton-abi");
         ╵                           ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@tact-lang/ton-abi" as external to exclude it from the bundle,
  which will remove this error. You can also surround this "require" call with a try/catch
  block to handle this failure at run-time instead of bundle-time.

8:44:13 PM [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/@tact-lang/emulator/dist/emulator/ContractSystem.js:25:26: ERROR: Could not resolve "@tact-lang/ton-abi"
    at failureErrorWithLog (/home/mj/Projects/ton/markyton/ton/test-app/node_modules/esbuild/lib/main.js:1649:15)
    at /home/mj/Projects/ton/markyton/ton/test-app/node_modules/esbuild/lib/main.js:1058:25
    at /home/mj/Projects/ton/markyton/ton/test-app/node_modules/esbuild/lib/main.js:1525:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
yourdaddy01 commented 3 months ago

Could not resolve "@tact-lang/ton-abi"

node_modules/@tact-lang/emulator/dist/emulator/ContractSystem.js:25:26: 25 │ const ton_abi_1 = require("@tact-lang/ton-abi"); ╵ ~~~~

You can mark the path "@tact-lang/ton-abi" as external to exclude it from the bundle, which will remove this error. You can also surround this "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.

8:44:13 PM [vite] error while updating dependencies: Error: Build failed with 1 error: node_modules/@tact-lang/emulator/dist/emulator/ContractSystem.js:25:26: ERROR: Could not resolve "@tact-lang/ton-abi" at failureErrorWithLog (/home/mj/Projects/ton/markyton/ton/test-app/node_modules/esbuild/lib/main.js:1649:15) at /home/mj/Projects/ton/markyton/ton/test-app/node_modules/esbuild/lib/main.js:1058:25 at /home/mj/Projects/ton/markyton/ton/test-app/node_modules/esbuild/lib/main.js:1525:9 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)