-
Notifications
You must be signed in to change notification settings - Fork 41
Cannot read property 'replace' of undefined #33
Comments
Have you run Have you got your locale set to something your app supports? |
Thanks for responding aredridel. Each node of cluster has their default locale set to en_US.UTF-8, which our app supports. I'll have to test what would happen if a browser with an unsupported locale were to load the application. Do we need to filter out calls from all unsupported locales? We are using prepackaged versions (npm's) of kraken, so no, I have not run "grunt build" for adaro. |
The locale comes from the user and the web, not the system locale.
|
To expand on @aredridel 's answer a bit, Since this requires some overhead, it's not suitable for production environments, so when you're ready to deploy the application, you need to pre-build and pre-compile all resources by running In development mode, when you access a resource for the first time, it will go look for it in the In production mode, it expects all resources to be there, and will not attempt to recreate them. So if you haven't built, it will blow up in a number of ways, eg: the error you see above. One interesting tidbit, is that this may go unnoticed if you do testing on dev mode before switching to production on the same machine. This happens because as you test, the resources will be built and placed on the |
Thanks IMarkus! You got me going in the correct direction. aredridel was correct - I was not running grunt build, but you explained why I needed to. Interestingly I had to add "i18n" to my grunt build task to get everything to work correctly. Thanks! |
We are using the following kraken version: "kraken-js": "^1.0.3",
And we are seeing the following error:
I took a look at the code
and the line in question is
So it appears that the file being passed in is undefined.
Any ideas how to further debug this?
Thanks,
bart
The text was updated successfully, but these errors were encountered: