Closed arturmartins closed 3 months ago
You are looking for index.js in the client application code. The error is occurring in the chaincode, which is located at fabric-samples/asset-transfer-basic/chaincode-typescript. The src directory contains asset.ts
, assetTransfer.ts
and index.ts
.
I'm not sure exactly where the problem has occurred for you. Maybe something went wrong during the chaincode packaging process and the correct content never got installed to the peer? You might be able to start a bash shell in the chaincode container to have a look around.
I would probably recommend:
./network.sh down
in the test-network
directory.git clean -xdf
and git pull
(from the main branch).docker system prune --volumes
.Good luck!
Closing as resolved since there has been no follow-up for several months.
Try to run hyperledger fabric 2.5.8 and try to follow along the https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html
After successfully committed the chaincode:
I tried to run npm (node 18+ installed)
Investigating Searching for
docker ps -a
in order to get the node container IDOutput:
Indeed, there is no index.js
Where is the problem located?