createActor(canisterId) depricated |Index.did.js file issue | Web3 |dfx| ICP #167486
-
BodyI am taking a web 3 course an 'dbank ' project is the second project in the course .The course is of 2022 .Th ecourse content includes the project template to work on like unzipping the project extracting the files .Now working on the project ,I found many functions in the files are now depricated .I fixed some issues .I updated the dfx version to 0.28.0 and also the packages .First ,the code was looking for dbank.did.js file which didnot exis in my project setup then i created one manually but it get deleted ,idk by which command .then following some AI instructions ,i added a script to copy file from another directory /home//ic_projects/dbank/src/declarations/dbank_assets to /home//ic_projects/dbank/src/declarations/dbank so that sevice.did.js can plya smae role as dbank.did.js
sending incremental file list sent 799,404 bytes received 332 bytes 1,599,472.00 bytes/sec
No production canister_ids.json found. Continuing with local WARNING in DefinePlugin 1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details) 1 warning has detailed information that is not shown. ERROR in index ERROR in unable to locate '/home/kora_stark/ic_projects/dbank/src/dbank_assets/assets' glob ERROR in Error: Child compilation failed:
1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details) 1 error has detailed information that is not shown. webpack 5.100.2 compiled with 4 errors and 2 warnings in 256 ms //here is my repo link .btw,am new to web3 and have lots of errors now [repo:][https://github.com/zoro-onepiece/dbank.git] Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
###Zoro solved the issue himself |
Beta Was this translation helpful? Give feedback.
###Zoro solved the issue himself
so I found that course was of 2022 then i started the project from scratch .I got latest versions of packages .Got the dfx to latest version .Srill there was a deprecation .Docs of icp helped me .which told to use await with httpAgent.create(), worked like a charm .