Closed folz closed 9 years ago
Yes, that's in torii as the stack trace shows:
TypeError: Cannot read property 'env' of undefined
at Class.treeForAddon (/home/user/Projects/groupsapp/node_modules/ember-cli-simple-auth-torii/node_modules/torii/ember-addon/index.js:26:46)
Hmm - it looks like npm is installing torii@0.3.2 as a dependency of ember-cli-simple-auth-torii despite its package.json declaring torii@0.3.3
├─┬ ember-cli-simple-auth-torii@0.8.0-beta.1
│ └─┬ torii@0.3.2
It looks like other people have had this error too (#13). Trying @cowboy's solution now gives me the warning message
➜ groupsapp git:(master) ✗ rm -rf node_modules/ember-cli-simple-auth-torii/node_modules/torii
➜ groupsapp git:(master) ✗ npm install torii@0.3.3
npm WARN unmet dependency /home/user/Projects/groupsapp/node_modules/ember-cli-simple-auth-torii requires torii@'0.3.2' but will load
npm WARN unmet dependency /home/user/Projects/groupsapp/node_modules/torii,
npm WARN unmet dependency which is version 0.3.3
torii@0.3.3 node_modules/torii
├── broccoli-string-replace@0.0.2 (broccoli-filter@0.1.12)
└── broccoli-funnel@0.2.3 (walk-sync@0.1.3, symlink-or-copy@1.0.1, mkdirp@0.5.0, minimatch@2.0.4, broccoli-read-compat@0.1.3, core-object@0.0.2)
I'm not sure why npm is still trying to install 0.3.2 when your package.json clearly says 0.3.3, but hopefully this can help you narrow down the problem.
Install ember-cli-simple-auth-torii from github - that has the torii dependency updated to 0.3.3.
Thanks, that worked. For anyone else with this problem,
ember install git+ssh://git@github.com/simplabs/ember-cli-simple-auth-torii
is the command that installed the version from github.
thnx
After running
ember install ember-cli-simple-auth
andember install ember-cli-simple-auth-torii
in a new ember-cli app,ember server
fails with the titular error message. The error message isn't there and everything runs normally when I don't try to install simple-auth-torii and just use simple-auth by itself.Looking at the error message, this may be an error in torii itself. In
node_modules/torii/ember-addon/index.js#L26
,this.app
is undefined. Let me know if I should open the issue in the torii repo instead.