If I use const cid = ..., I should appear when running. TypeError: Assignment to Constant Variable.
And, I think it should be in the create () method, when the _init () method is called, addawait this._init();
Below is the main.js file example I have written according to the tutorial in learning.
Only by the modifications mentioned above, it can make this file to run normal, I am not sure if the behavior is correct.
01_Tutorial/02_Managing_Data.md:
If I use
const cid = ...
, I should appear when running.TypeError: Assignment to Constant Variable.
And, I think it should be in thecreate ()
method, when the_init ()
method is called, addawait this._init();
Below is the
main.js
file example I have written according to the tutorial in learning. Only by the modifications mentioned above, it can make this file to run normal, I am not sure if the behavior is correct.I have modified the AddNewpiece function in order to run, so that I will return to
cid
atif (existingpiece)
/01_Tutorial/03_Structuring_Data.md: Utilizing the practice counter ... These can be used in your application code like so:
const content = await NPP.node.dag.get(cid)
Should be changed