trailsjs / trails

:evergreen_tree: Modern Web Application Framework for Node.js.
http://trailsjs.io
Other
1.66k stars 70 forks source link

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

Closed konstantinzolotarev closed 8 years ago

konstantinzolotarev commented 8 years ago

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 commented 8 years ago

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

module.exports = {
  lng: 'en',
  resources:{
    en: require('./locales/en.json')
  }
}
{}
yannbertrand commented 8 years ago

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

jaumard commented 8 years ago

Related to https://github.com/trailsjs/generator-trails/issues/17 :)

raed667 commented 8 years ago

:+1: