I'm working on a project (asp.net mvc). When I run it in debug mode it runs without any error, but if I runs it in release mode (run without debugging) it gives following errors. What could be the issue.
Uncaught SyntaxError: Unexpected token 'const'
Uncaught ReferenceError: $ is not defined
I found the solution. I have put min.js files in bundle config file. I removed them and linked directly to cshtml page. Now it's working smoothly.