Good Day. Banging my head here and need a pair of fresh eyes...
I have a NextJS (10.0.6) app (React 17.0.1). I'm trying to incorporate Bouncer.js validation code.
Both the bouncer.min.js
file and my init() file are being pulled into the correct page,
<script src="/static/bouncer.min.js" async=""></script>
<script src="/static/bouncerLoad.js" async=""></script>
</body>
which I believe is evident because I'm getting an Undefined error.
Unhandled Runtime Error
ReferenceError: Bouncer is not defined
This is the content of my bouncerLoad.js
file:
var validate = new Bouncer('contactform');
console.log("bouncer loaded");
Any suggestions?