Why can't I import near-api-js
using the plain HTML script tag?
#1350
Unanswered
TheNathanN
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm experimenting with building a browser game that uses near. I followed the steps in your docs but I'm getting the error shown below.
I've also tried to import in my js file instead of in the html and I'm receiving the same error.
import * as nearAPI from "https://cdn.jsdelivr.net/npm/[email protected]/lib/browser-index.min.js"
Based on the example in your docs I'm importing the file in green but the error I'm receiving is coming from the file in red.
Here is where the error seems to be happening in the script.
Is this an error on my part?
Beta Was this translation helpful? Give feedback.
All reactions