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

TypeError: Cannot read property 'compatibilityAPI' of undefined #54

Closed
konstantinzolotarev opened this issue Jan 2, 2016 · 4 comments
Closed
Labels

Comments

@konstantinzolotarev
Copy link
Contributor

Copied from #53

C:\Users\M7\trails-demo2>npm start

> trails-demo-2@0.0.0 start C:\Users\M7\trails-demo2
> node server.js

info: Starting...
debug: trails event: trails:start
verbose: Trailpacks: All Validated.
debug: trails event: trailpack:all:validated
debug: trails event: trailpack:repl:configured
debug: trails event: trailpack:router:configured
debug: trails event: trailpack:core:configured
debug: trails event: trailpack:hapi:configured
debug: trails event: trailpack:all:configured
debug: trails event: trailpack:repl:initialized
debug: trails event: trailpack:router:initialized
error:
 TypeError: Cannot read property 'compatibilityAPI' of undefined
    at t.u.value (C:\Users\M7\trails-demo2\node_modules\i18next\bin\index.js:2:3238)
    at C:\Users\M7\trails-demo2\node_modules\trailpack-core\lib\i18n.js:6:15
    at Object.init (C:\Users\M7\trails-demo2\node_modules\trailpack-core\lib\i18n.js:5:12)
    at Core.initialize (C:\Users\M7\trails-demo2\node_modules\trailpack-core\index.js:34:21)
    at C:\Users\M7\trails-demo2\node_modules\trails\lib\trailpack.js:46:26
    at process._tickDomainCallback (node.js:425:9)
    at Function.Module.runMain (module.js:432:11)
    at startup (node.js:141:18)
    at node.js:980:3
debug: trails event: trails:stop
@yannbertrand
Copy link
Member

At the moment, you need to create some config files manually:

  • config/i18n.js (don't forget to add a reference to it into the config/index.js)
module.exports = {
  lng: 'en',
  resources:{
    en: require('./locales/en.json')
  }
}
  • config/locales/en.json
{}

@yannbertrand
Copy link
Member

#45 seems to be related. May this issue occur because of an outdated trailpack-core, @tjwebb?

@tjwebb tjwebb added the crash label Jan 3, 2016
@jaumard
Copy link
Contributor

jaumard commented Jan 3, 2016

@raed667
Copy link

raed667 commented Jan 3, 2016

👍

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

No branches or pull requests

5 participants