meteor-vue-admin icon indicating copy to clipboard operation
meteor-vue-admin copied to clipboard

[SSR] Get error: Meteor.userId can only be invoked in method calls or publications

Open thearabbit opened this issue 6 years ago • 0 comments

I tried to apply Vue-SSR, but get the error in store: auth.js

  state: {
    userId: Meteor.userId(), // On initial load the userId will come from Meteor
    email: null,
    isEmailVerified: null,
    profile: null,
    userDetailsLoaded: false,
  },
---------------------
Meteor.userId can only be invoked in method calls or publications

thearabbit avatar May 22 '19 02:05 thearabbit