I'm using webpack
and babel
to use the new features
of ES6
, mainly the part of modularization which is working perfectly and I'm also using a development server. It turns out that for some reason in my index.html
the onclick
event does not call any function that I specify within it:
<button class="btn btn-primary btn-lg mt-5" href="#" role="button" onclick="apostar()">
The error message that appears in the Browser console is this:
Uncaught ReferenceError: betting is not defined at HTMLButtonElement.onclick
I'm using bundle.js
usually webpack
.