Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on i18nFind with meteorjs 1.2.0.1 #22

Open
vuongngo opened this issue Sep 25, 2015 · 8 comments
Open

Exception on i18nFind with meteorjs 1.2.0.1 #22

vuongngo opened this issue Sep 25, 2015 · 8 comments

Comments

@vuongngo
Copy link

Hi, I just update all meteor packages and got this error. Current tap-i18n-db package is 0.4.0 and meteorjs is 1.2.0.1. I reckon that similar issue has been fixed with meteorjs 1.2 but not sure if it is identical with this. Thanks!


I20150925-22:35:30.833(10)? Exception from sub book id 7EAiyoTETFPtsYxbk TypeError: Array.prototype.indexOf called on null or undefined
I20150925-22:35:30.833(10)?     at indexOf (native)
I20150925-22:35:30.833(10)?     at [object Object].obj.i18nFind (meteor://💻app/packages/tap_i18n-db/packages/tap_i18n-db.js:352:1)
I20150925-22:35:30.833(10)?     at [object Object]. (meteor://💻app/server/book.js:2:1)
I20150925-22:35:30.833(10)?     at [object Object].i18n_handler [as _handler](meteor://💻app/packages/tap_i18n-db/packages/tap_i18n-db.js:429:1)
I20150925-22:35:30.834(10)?     at maybeAuditArgumentChecks (meteor://💻app/livedata_server.js:1692:12)
I20150925-22:35:30.834(10)?     at [object Object]._.extend._runHandler (meteor://💻app/livedata_server.js:1023:17)
I20150925-22:35:30.834(10)?     at [object Object].subscriptionProto._runHandler (meteor://💻app/packages/meteorhacks_kadira/packages/meteorhacks_kadira.js:2604:1)
@vuongngo vuongngo changed the title Exception on i18nFind with meteorjs 1.21 Exception on i18nFind with meteorjs 1.2.0.1 Sep 25, 2015
@Kostanos
Copy link

Same error here

@vuongngo
Copy link
Author

A dirty way to fix it is to assign TAPi18n.conf.supported_languages with a list of langs. Hope it helps!

@davidecantini
Copy link

Same error here (packages/tap_i18n-db/packages/tap_i18n-db.js:352:1 same as issue 19)
Tested on Meteor 1.2.0.2

@theosp Is this package being actively maintained?

Thanks for your attention.

@timbrandin
Copy link

Same issue here.

@timbrandin
Copy link

@vuongngo you solution works, but it seams like TAPi18n doesn't pick up the supported languages or they have moved to somewhere else than TAPi18n.config.supported_languages

@ddaydd
Copy link

ddaydd commented Apr 12, 2016

@vuongngo thanks,

work with TAPi18n.conf.supported_languages = ['en', 'fr'];

@timbrandin
Copy link

I guess this should be solved so that the actual implementation should work, rather than us all doing workarounds.

@samuelluis
Copy link

Works for me, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants