Uncaught TypeError: AlephBet.Goal is not a constructor
gingerlime opened this issue · 2 comments
gingerlime commented
Alephbet 0.21.0+
<html>
<head>
<script src="https://unpkg.com/alephbet@0.21.0/dist/alephbet.min.js"></script>
<script type="text/javascript">
payment = new AlephBet.Goal('payment completed');
</script>
</head>
</html>
raises Uncaught TypeError: AlephBet.Goal is not a constructor
Alephbet 0.20.0
works fine
<html>
<head>
<script src="https://unpkg.com/alephbet@0.20.0/dist/alephbet.min.js"></script>
<script type="text/javascript">
payment = new AlephBet.Goal('payment completed');
</script>
</head>
</html>
joker-777 commented
This is super weird. When I tested my changes I just use Kenhub to include the script and it worked. I could see AlephBet
in window
. I've been trying now to get a code pen example to work but without any luck :(
gingerlime commented
this was fixed with 0.23 (at least works now with it), i.e.
<html>
<head>
<script src="https://unpkg.com/alephbet@0.23.0/dist/alephbet.min.js"></script>
<script type="text/javascript">
payment = new AlephBet.Goal('payment completed');
</script>
</head>
</html>