2👍
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,
- Select the version of build that you want.
- Select the type of asset that you want (Javascript / Stylesheet).
- Click on ‘</>’ to copy the script tag which can be pasted and used directly in your page.
Source:stackexchange.com