meteor-useraccounts / flow-routing

Useraccounts packages add-on for integration with Flow Router and Blaze Layout.
https://atmospherejs.com/useraccounts/flow-routing
MIT License
72 stars 50 forks source link

Cannot read property 'BlazeLayout' of undefined after package update #17

Closed derwaldgeist closed 8 years ago

derwaldgeist commented 8 years ago

In my Meteor 1.1 app, I executed a meteor update --packages-only and got this update report:

babrahams:editable-json    removed from your project
cfs:storage-adapter        upgraded from 0.2.1 to 0.2.3
cfs:tempstore              upgraded from 0.1.4 to 0.1.5
gwendall:session-json      removed from your project
kadira:blaze-layout        upgraded from 2.1.0 to 2.2.0
kadira:debug               upgraded from 2.2.3 to 2.2.4
kadira:flow-router         upgraded from 2.6.2 to 2.8.0
meteorhacks:kadira         upgraded from 2.23.4 to 2.25.0
meteorhacks:meteorx        upgraded from 1.3.1 to 1.4.1
meteorhacks:search-source  upgraded from 1.4.0 to 1.4.1
meteortoys:toykit*         upgraded from 0.8.7 to 1.0.4
msavin:jetsetter           upgraded from 1.0.20 to 1.1.0
msavin:mongol              upgraded from 1.1.5 to 1.2.0
semantic:ui                upgraded from 2.1.4 to 2.1.4_3
semantic:ui-data           upgraded from 2.1.4 to 2.1.5

After this upgrade, the app won't start anymore and throws the following exception:

W20151104-11:02:44.175(1)? (STDERR) /Users/waldgeist/.meteor/packages/meteor-tool/.1.1.4.17074nh++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20151104-11:02:44.175(1)? (STDERR)                         throw(ex);
W20151104-11:02:44.175(1)? (STDERR)                               ^
W20151104-11:02:44.179(1)? (STDERR) TypeError: Cannot read property 'BlazeLayout' of undefined
W20151104-11:02:44.179(1)? (STDERR)     at /Users/waldgeist/Documents/Development/htdocs/aiddogs/webapp/.meteor/local/build/programs/server/packages/useraccounts_flow-routing.js:7:49
W20151104-11:02:44.179(1)? (STDERR)     at /Users/waldgeist/Documents/Development/htdocs/aiddogs/webapp/.meteor/local/build/programs/server/packages/useraccounts_flow-routing.js:264:3
W20151104-11:02:44.179(1)? (STDERR)     at /Users/waldgeist/Documents/Development/htdocs/aiddogs/webapp/.meteor/local/build/programs/server/boot.js:222:10
W20151104-11:02:44.179(1)? (STDERR)     at Array.forEach (native)
W20151104-11:02:44.179(1)? (STDERR)     at Function._.each._.forEach (/Users/waldgeist/.meteor/packages/meteor-tool/.1.1.4.17074nh++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20151104-11:02:44.179(1)? (STDERR)     at /Users/waldgeist/Documents/Development/htdocs/aiddogs/webapp/.meteor/local/build/programs/server/boot.js:117:5

The problem occurs in the useraccounts-flow-routing package. But as this packages has not been upgraded, I think that the blazelayout package might be the root cause.

jshimko commented 8 years ago

I can't seem to reproduce the issue locally using the exact same versions. Is your repo public? Or can you share a basic reproduction of the issue?

splendido commented 8 years ago

any new on this @derwaldgeist?

derwaldgeist commented 8 years ago

Sorry for not coming back on this. I updated my app to 1.2 in the meantime and have not seen this problem anymore.

splendido commented 8 years ago

ok, thanks for reporting back!