OHDSI / Atlas

ATLAS is an open source software tool for researchers to conduct scientific analyses on standardized observational data
http://atlas-demo.ohdsi.org/
Apache License 2.0
266 stars 136 forks source link

Altas does not start. Error ko.i18n is not a function #2885

Closed apopassias closed 7 months ago

apopassias commented 1 year ago

image

Any ideas?

apopassias commented 1 year ago

Atlas version 2.13.0

prgueza commented 11 months ago

This happens to us randomly, and my best guess is that the order in which require is loading the different modules is arbitrary and in some (many) occasions the module that injects the i18n function into knockout is not yet loaded when these function runs.

The file where this i18n function is injected into knockout is the js/extensions/bindings/i18nBinding.js (here). This module is loaded via the js/extensions/bindings/main.js module that theoretically is aliased as the databindings package in the settings.js file here. There is however a comment in the js/extensions/bindings/main.js file that says "// is this being loaded? doesn't seem like it", so I don't really know what to think.

I'm no expert in knockout nor the require module loader, but I hope this sheds some light on the issue and helps someone who knows what they are doing solve it.

anthonysena commented 7 months ago

Hi - this has been fixed in Atlas v2.14 per #2851. Closing this out and hopefully this fixes it for you both.