Hello all
Iābeen trying to follow the tutorial to build a simple dex by using the Moralis sdk. Iām not sure Iām doing the rights steps, as I donāt have visual studio but webstorm from intellij.
So here is the thing, webstorm allows me to open the index.html via chrome, or local built-in webpage, and it works, however it seems itās not able to fetch the list of tokens, because when I click on the swap selection window the list is just empty. So I thought the issue is that the main.js may have some issues after itās called by index.html. If I run the main.js singularly, Iād expect it to raise no errors, however it does as the following:
ReferenceError: document is not defined.
I see from the code that indeed the document function/object is not defined/declared in the script. I got the script from the full code reference of the youtube tutorial, but I donāt know if I missed some steps or anything.
Thx a lot for the help in advance,pls let me know if I should paste some snippet of the code here.