george
george
DDeno
Created by george on 1/6/2024 in #help
import plotly.js : invalid or unexpected token ?
import Plotly from "npm:plotly.js-dist"; yields Stack trace: SyntaxError: Invalid or unexpected token at file:///Users/george/Library/Caches/deno/npm/registry.npmjs.org/plotly.js-dist/2.28.0/plotly.js:1091:14 $ cat plotly.js-dist/2.28.0/package.json
{
"name": "plotly.js-dist",
"version": "2.28.0",
"description": "Ready-to-use plotly.js distributed bundle.",
"license": "MIT",
"main": "plotly.js",
"repository": {
"type": "git",
"url": "https://github.com/plotly/plotly.js.git"
},
"bugs": {
"url": "https://github.com/plotly/plotly.js/issues"
},
"author": "Plotly, Inc.",
"keywords": [
"graphing",
"plotting",
"data",
"visualization",
"plotly"
],
"files": [
"LICENSE",
"README.md",
"plotly.js"
]
}
{
"name": "plotly.js-dist",
"version": "2.28.0",
"description": "Ready-to-use plotly.js distributed bundle.",
"license": "MIT",
"main": "plotly.js",
"repository": {
"type": "git",
"url": "https://github.com/plotly/plotly.js.git"
},
"bugs": {
"url": "https://github.com/plotly/plotly.js/issues"
},
"author": "Plotly, Inc.",
"keywords": [
"graphing",
"plotting",
"data",
"visualization",
"plotly"
],
"files": [
"LICENSE",
"README.md",
"plotly.js"
]
}
importing d3 and nodjs-polars works ok. macos deno --version deno 1.39.1 (release, aarch64-apple-darwin) v8 12.0.267.8 typescript 5.3.3
7 replies