DonJayamanne / typescript-notebook

Run JavaScript and TypeScript in node.js within VS Code notebooks with excellent support for debugging, tensorflowjs visulizations, plotly, danfojs, etc
https://marketplace.visualstudio.com/items?itemName=donjayamanne.typescript-notebook
MIT License
913 stars 41 forks source link

Got error while import Apache echarts #90

Open veshus opened 1 year ago

veshus commented 1 year ago

telegram-cloud-photo-size-2-5377407743490642915-w

Is there any workaround?

.../projects/echarts/node_modules/echarts/dist/echarts.js:123
        env.touchEventsSupported = 'ontouchstart' in window && !browser.ie && !browser.edge;
                                                     ^

    at detect (.../projects/echarts/node_modules/echarts/node_modules/zrender/lib/core/env.js:66:50)
    at .../projects/echarts/node_modules/echarts/node_modules/zrender/lib/core/env.js:40:5
    at .../projects/echarts/node_modules/echarts/dist/echarts.js:22:68
    at Object.<anonymous> (.../projects/echarts/node_modules/echarts/dist/echarts.js:25:2)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function._._load (.../.vscode/extensions/donjayamanne.typescript-notebook-2.0.6/out/extension/server/index.js:2:115372)
    at Module.require (node:internal/modules/cjs/loader:1235:19)