Home Forums Chart Support Facing error inside canvas.min.js

Facing error inside canvas.min.js

Viewing 2 posts - 1 through 2 (of 2 total)
  • #42261

    I’m getting this error in canvas.min.js while running my app. I’ve imported the canvas.min.js inside a index.js file-

    C:\NodeJs\New folder\canvasjs\canvasjs.min.js:461
    var Ha = !1, Ga = {}, w = !!document.createElement(“canvas”).getContext, ua = {

    ReferenceError: document is not defined
    at ←[90mC:\NodeJs\New folder\←[39mcanvasjs\canvasjs.min.js:461:31
    at Object.<anonymous> ←[90m(C:\NodeJs\New folder\←[39mcanvasjs\canvasjs.min.js:9469:3←[90m)←[39m
    ←[90m at Module._compile (node:internal/modules/cjs/loader:1254:14)←[39m
    ←[90m at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)←[39m
    ←[90m at Module.load (node:internal/modules/cjs/loader:1117:32)←[39m
    ←[90m at Module._load (node:internal/modules/cjs/loader:958:12)←[39m
    ←[90m at Module.require (node:internal/modules/cjs/loader:1141:19)←[39m
    ←[90m at require (node:internal/modules/cjs/helpers:110:18)←[39m
    at Object.<anonymous> ←[90m(C:\NodeJs\New folder\←[39mchart.js:2:18←[90m)←[39m
    ←[90m at Module._compile (node:internal/modules/cjs/loader:1254:14)←[39m

    Node.js v18.14.2

    can anyone help on this?



    Kindly create a sample project reproducing the issue & share it with us over Google-Drive or Onedrive so that we can run the sample locally to understand the scenario better and help you out.

    From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact scenario, or the solution that we provide may not work properly due to the variation in chart options being used by you and us.

    Having a sample project helps us in figuring out the issue and suggesting an appropriate solution accordingly.

    Adithya Menon
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.