Ошибка в консоли: Access to script at 'file:///...' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
Поставьте экстеншен Live Server
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
И запускайте код через правую клавишу мыши (Open with Live Server)
Поставьте экстеншен Live Server
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
И запускайте код через правую клавишу мыши (Open with Live Server)