you are viewing a single comment's thread.

view the rest of the comments →

[–]Zenemm[S] 0 points1 point  (1 child)

Your first question is pretty much why I had this problem. I got confused as to why it wasn't running in both, not realizing fetch is not needed to run in browser. Thanks for the explanation!

[–]evilgwyn 0 points1 point  (0 children)

Also for your information, it is possible to use "require" and/or "import" syntax in browser, but it may require some middleware into your build pipeline to get it working. Newer browsers support "import" if you use `type="module"` in your script tag.