I’m trying to import a library in home.js however whenever I do, it says
5:9 error Parsing error: 'import' and 'export' may only appear at the top level
If i put the import in main.js it says
5:8 error 'Chart' is defined but never used no-unused-vars
How do i import this and do stuff only on the homepage?