okta / samples-js-angular

samples-js-angular
https://github.com/okta/samples-js-angular
Other
73 stars 149 forks source link

Prod build doesn't render correctly #37

Closed GarettRogers closed 4 years ago

GarettRogers commented 5 years ago

Trying to do a prod build of okta-hosted-login, and the compiled project doesn't appear to work. I am getting this error when I try to view the page in the browser:

Uncaught TypeError: Cannot use 'in' operator to search for 'window' in undefined

Doing ng serve works without issue.

swiftone commented 4 years ago

Recent versions of the angular SDK have addressed problems with AOT compilation. We're not aware of any remaining complications regarding that SDK nor this sample.