Home Forums Chart Support When running puppeteer, cannot access local version of CanvasJS source Reply To: When running puppeteer, cannot access local version of CanvasJS source

#43736

Graham,

While using the trial version of CanvasJS, the script is being served from a server, however, while integrating the commercial version, it’s not.

Serving the script file from the server seems to be working fine. Please check the code snippet below which uses Express to serve CanvasJS from a server:

//demo_ServeCsv.js

var express = require("express");
var app = express();

app.get("/", function (request, response) {     
  response.sendFile(__dirname + "/demo_traffic_chart.html"); 
});

app.get("/canvasjs.min.js", function (request, response) {     
  response.sendFile(__dirname + "/canvasjs.min.js"); 
}); 

app.listen(8000);  

console.log("Check out http://localhost:8000");


Thangaraj Raman
Team CanvasJS