Import a file from outside Meteor root directory


#1

Meteor throws an error when I try to import a file that is in a parent directory from the root directory of my app:

In this folder structure:

someFolder/
  someFile.js
myApp/
  .meteor/

  ...etc

  client/
    main.js

If in main.js I try to do import something from '../../someFolder/someFile', it will compile and throw an error in the browser console: Uncaught Error: Cannot find module ../../someFolder/someFile.

Is it possible to tell meteor to include that file?


#2

This appears to be a feature request for meteor, didn’t find this GitHub issue before: https://github.com/meteor/meteor-feature-requests/issues/123