I use openemr 5 i am unable to create new patient record

when i am trying to create new patient but create new patient button not works. I got Uncaught TypeError: Cannot read property ‘msie’ of undefined error on console

Looks like you may be on Internet Explorer (msie).

To ensure a consistent look and feel as well as a bug-free experience throughout the application, Firefox and Chrome are recommended. The OpenEMR development team exclusively tests with modern versions of these browsers.

I had a similar problem when working on a highly customized version of 4.2.1 that was recently upgraded to OpenEMR 5.0. The problem was with an outdated javascript file that I had pulled in when working with the custom code. The old file was trumping the new JS file, and it wasn’t allowing me to add patients.

good point by @growlingflea . Usually clearing the web browser cache/cookies can deal with this.

For developers: OpenEMR does have a cache busting mechanism to deal with this, but it does not yet cover the entire codebase:
openemr/version.php at master · openemr/openemr · GitHub