I tried out the Plot library on Codepen.io and it works great. I am now trying to use the same codebase on my own site but it gives me error on the import statement -
Uncaught SyntaxError: import declarations may only appear at top level of a module
//Here is the import statement which sits at the top of my js file.
import * as Plot from “https://cdn.skypack.dev/@observablehq/plot@0.5”;
Browser is Firefox 103.0.
I tried removing this and adding the script tags to the html page but then I get an error relating to Plot not being defined.