Hi,
we published our web app on server. If we try to log in our backend, following error occurs:
Login.js?v=636704311600000000:28 Uncaught TypeError: Cannot read property 'contentTypes' of undefined at HTMLFormElement.<anonymous> (Login.js?v=636704311600000000:28) at HTMLFormElement.dispatch (jquery.min.js?v=636704311600000000:9) at HTMLFormElement.r.handle (jquery.min.js?v=636704311600000000:9)
I check the element in login.js and the complete app object is undefined.
The web application locally runs without any problems...
3 Answer(s)
-
0
are you using aspnet core jquery version?
did you run
npm run create-bundle
on Mvc project? The issue could be due toconst.js
not being bundled/minified when publishing.see Run the project section
-
0
We are using ASP.NET MVC 5.x & AngularJS 1.x. The const.js file is in Common/Scripts which is bundled. If I add debug="true" in <compilation targetFramework="4.6.1"> the app is running. So it does not work if bundling is active. What can I do now?
-
0
Hi @uabel,
Can you create an issue here https://github.com/aspnetzero/aspnet-zero/issues ? We will check and fix it.
Thanks,