Cannot find module 'meteor/session'

95:!webmch yegorov-p$ meteor --version
Meteor 1.3
95:!webmch yegorov-p$ meteor create test
Created a new Meteor app in 'test'.           
 
To run your new app:                          
  cd test                                     
  meteor                                      
                                              
If you are new to Meteor, try some of the learning resources here:
  https://www.meteor.com/learn    

Then I edit /client/main.js and add this line

 import { Session } from 'meteor/session';

as in http://docs.meteor.com/#/full/session_set

after that Chrome console says:

 modules-runtime.js?hash=939c79dā€¦:95 Uncaught Error: Cannot find module 'meteor/session'

Is it a bug?

You need to meteor add session.

8 Likes