Home › forums › Using CanvasJS › Uncaught SyntaxError: Unexpected token import › Reply To: Uncaught SyntaxError: Unexpected token import
Adding type=”text/babel” to the src attribute of script tag should work fine. Please refer this stackoverflow thread for more info. If this doesn’t solve the issue, kindly share sample project so that we can look into the code and help you out.
Also please take a look at this jsfiddle on rendering Column Chart using ReactJS.