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.