title: Cannot find meteor module 'webapp'
body: <p>Trying to set the rawConnectHandlers property, I get an error message. The code is the following:</p>
  
  <pre><code>import {WebApp} from 'meteor/webapp';
  
  WebApp.rawConnectHandlers.use(function(req, res, next) {
    res.setHeader("Access-Control-Allow-Origin", "*");
    return next();
  });
  </code></pre>
  
  <p>Although I have installed the meteor package <a href="https://docs.meteor.com/packages/webapp.html" rel="nofollow">webapp</a> and it is listed in meteors packages file (webapp@1.3.11). I am getting the message "Cannot find module 'meteor/webapp'"</p>
  
  <p>The file is called main.ts and is located directly in meteors server directory. Of course I have tried to restart the application after installing the webapp module via 'meteor add webapp' and also 'meteor add webapp@1.3.11'.</p>
  
  <p>What am I doing wrong?</p>