DiscoverMeteor / book

17 stars 0 forks source link

chapter 5.5 The Session #505

Open AnvarTurobov opened 8 years ago

AnvarTurobov commented 8 years ago

Session.set('pageTitle', 'A different title');

returns caught ReferenceError: Session is not defined(…)

It seems session is not part of default meteor app anymore and should be added as a package.

ghost commented 7 years ago

Yeah, it's because the Session its not installed, To add Session to your application, run this command in your terminal:

meteor add session

https://docs.meteor.com/api/session.html