流星包更新破坏了SSR

时间:2017-04-17 17:23:34

标签: facebook meteor meteor-accounts

我遇到了Facebook登录问题,并找到了this

将meteor和所有软件包更新到最新版本修复了Facebook登录问题,但后来我发现服务器端渲染停止了工作。我正在使用FlowRouter

我尝试了一种不同的方法,而不是升级流星和所有软件包,我只是将accounts-facebook升级到版本1.0.12。

meteor add accounts-facebook@1.0.12

Meteor只是不升级account-facebook包,它会做一堆其他包(可能是为了保持依赖性正确),所以在运行最后一个命令后,这就是改变了:

accounts-base          upgraded from 1.2.12_1 to 1.2.14
accounts-facebook      upgraded from 1.0.10 to 1.0.12
accounts-oauth         upgraded from 1.1.13 to 1.1.15
babel-compiler         upgraded from 6.9.1_1 to 6.13.0
babel-runtime          upgraded from 0.1.11_1 to 0.1.12
base64                 upgraded from 1.0.9 to 1.0.10
binary-heap            upgraded from 1.0.9 to 1.0.10
boilerplate-generator  upgraded from 1.0.10 to 1.0.11
callback-hook          upgraded from 1.0.9 to 1.0.10
check                  upgraded from 1.2.3 to 1.2.4
ddp-rate-limiter       upgraded from 1.0.5 to 1.0.6
diff-sequence          upgraded from 1.0.6 to 1.0.7
ecmascript             upgraded from 0.5.8_1 to 0.5.9
ecmascript-runtime     upgraded from 0.3.14_1 to 0.3.15
ejson                  upgraded from 1.0.12 to 1.0.13
es5-shim               upgraded from 4.6.14_1 to 4.6.15
facebook               upgraded from 1.2.9 to 1.2.11
geojson-utils          upgraded from 1.0.9 to 1.0.10
http                   upgraded from 1.2.9_1 to 1.2.10
id-map                 upgraded from 1.0.8 to 1.0.9
localstorage           upgraded from 1.0.11 to 1.0.12
logging                upgraded from 1.1.15_1 to 1.1.16
meteor                 upgraded from 1.2.17_1 to 1.6.0
minimongo              upgraded from 1.0.17 to 1.0.18
modules                upgraded from 0.7.6_1 to 0.7.7
modules-runtime        upgraded from 0.7.6_1 to 0.7.7
mongo                  upgraded from 1.1.13 to 1.1.14
mongo-id               upgraded from 1.0.5 to 1.0.6
npm-mongo              upgraded from 2.2.11_1 to 2.2.11_2
oauth                  upgraded from 1.1.11 to 1.1.12
oauth2                 upgraded from 1.1.10 to 1.1.11
ordered-dict           upgraded from 1.0.8 to 1.0.9
promise                upgraded from 0.8.7 to 0.8.8
rate-limit             upgraded from 1.0.5 to 1.0.6
reload                 upgraded from 1.1.10 to 1.1.11
routepolicy            upgraded from 1.0.11 to 1.0.12
service-configuration  upgraded from 1.0.10 to 1.0.11
tracker                upgraded from 1.1.0 to 1.1.1
underscore             upgraded from 1.0.9 to 1.0.10
url                    upgraded from 1.0.10 to 1.0.11
webapp                 upgraded from 1.3.11_1 to 1.3.12

与第一种方法一样,Facebook登录问题已得到修复,但在此过程中丢失了SSR。

现在,什么可能是保持两者(Facebook登录和SSR)工作的最佳解决方案?

感谢。

1 个答案:

答案 0 :(得分:0)

所以这里有解决方法:

来源:[backport] Facebook API changes for 1.4.2.x accounts-facebook users. #8534