I don't know if this error is due to a PyScript update, I would like to know how to solve it.
With previous versions there are no problems running the code using the following CDNs:
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
The error occurs when I use the latest updated version (see CDNs) in the code below:
<html>
<head>
<title> Learn DOM for PyScript </title>
<link rel='stylesheet' type='text/css' media='screen' href='https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css'>
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
</head>
<body>
<h1>Learn DOM Manipulation using PyScript</h1>
<h2>Simple String Counter using Python