score:1

based on comment, you are importing the html page and not the js file.

here is what you can do to resolve the issue.

after visiting https://cdnjs.com/libraries/chart.js you can,

  1. select the version of build that you want.
  2. select the type of asset that you want (javascript / stylesheet).
  3. click on '</>' to copy the script tag which can be pasted and used directly in your page.

snipshot


Related Query

More Query from same tag