Why is this external function not working in nextjs but in plain html it does
Unanswered
Black Skimmer posted this in #help-forum
Black SkimmerOP
Hi, I am currently trying to set up an external script and execute a function in nextjs but I am getting the error message that the method "startMining" doesnt exist.
This is what my code looks like in NextJS: https://just-paste.it/3RbGlxkGw0
The strange thing is that the same JavaScript code works in plain html, the method is recognized. You can find the code here: https://just-paste.it/VztvWewxQC
I appreciate your answers.
This is what my code looks like in NextJS: https://just-paste.it/3RbGlxkGw0
The strange thing is that the same JavaScript code works in plain html, the method is recognized. You can find the code here: https://just-paste.it/VztvWewxQC
I appreciate your answers.