Christopher thank you for looking into it.
According to my code, I am just feeding my code to interpreter and not running it. On my local, the output is normal and expected which is in this case is
NO OUTPUT because I am not running it. But if I run this code it gives me a
typeError: console is not defined which is also expected as I am not defining
console anywhere. But in production mode, without even running it, it gives me
syntaxError: unexpected token (62:20).In Local Mode: I am just running my server with
nodemon.In Production Mode: I am creating build with next build and starting my production mode with next start
Versions I am using for my next.js app
"react": "18.2.0"
"next": "13.4.3"
"node": "18.16.0"
"js-interpreter": "4.0.0"