流星包更新破坏SSR
Meteor package update broke SSR
我在 Facebook 登录时遇到问题,发现 。
将 meteor 和所有软件包更新到最新版本修复了 Facebook 登录问题,但后来我发现服务器端渲染停止工作。我正在使用 FlowRouter.
我尝试了一种不同的方法,我没有升级 meteor 和所有软件包,而是将 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)正常工作的最佳解决方案是什么?
谢谢。
解决方法如下:
- 从 Meteor 1.4.1.3(在我的例子中)将 facebook package 文件夹的副本克隆到应用程序中的 packages/facebook 文件夹中;
- 应用提交 meteor/meteor@873f13d and meteor/meteor@2c5dda1.
来源:[backport] Facebook API changes for 1.4.2.x accounts-facebook users. #8534
我在 Facebook 登录时遇到问题,发现
将 meteor 和所有软件包更新到最新版本修复了 Facebook 登录问题,但后来我发现服务器端渲染停止工作。我正在使用 FlowRouter.
我尝试了一种不同的方法,我没有升级 meteor 和所有软件包,而是将 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)正常工作的最佳解决方案是什么?
谢谢。
解决方法如下:
- 从 Meteor 1.4.1.3(在我的例子中)将 facebook package 文件夹的副本克隆到应用程序中的 packages/facebook 文件夹中;
- 应用提交 meteor/meteor@873f13d and meteor/meteor@2c5dda1.
来源:[backport] Facebook API changes for 1.4.2.x accounts-facebook users. #8534