Package dev: Import less resources from npm module still does not work


#1

Hi there,

I am working on developing a package in meteor 1.4.1. I have included a local .less file via

Package.onUse(function(api) {
  //...
  api.use('less');
  api.addFiles( 'lib/stylesheets/somelessfile.less', [ 'client' ], {isImport:false});
  //...
});

In this less, I want to include less files from a dependend node_module like so:

@import "{}/node_modules/the-package-name/styles/properties.less";

(the-packagename is a placeholder here). Of course the Npm.dependencies are loaded correctly. However, compiling that I get the following error:

=> Errors prevented startup:                  
   
   While processing files with less (for target web.browser):
   packages/user:package/lib/stylesheets/somelessfile.less:1: Unknown import:
   {}/node_modules/the-package-name/styles/properties.less
   
=> Your application has errors. Waiting for file change.

I searched around the web and there are a lot of similar questions but none with a working solution. Somebody has found out a solution?