I think you should check out content-security-policy or add toString() method after asWebviewUri() so let styleUri => styleUrl
const styleUrl = panel.webview.asWebviewUri(cssPathOnDisk).toString();