How to fix less @import error?


#1

I’m getting an error while trying to import a node module less file into my own style.less file. Here is the error that I’m getting.

 While processing files with less (for target web.browser):
   client/css/style.less:1: Unknown import: {}/node_modules/bootstrap-material-design/less/bootstrap-material-design.less

I have tried using the @import as per the Meteor 1.2 Upgrade Guide and the less package README. I’m on Meteor v1.4.1.2.

What am I doing wrong here?


#2

I wasn’t actually doing any thing wrong, I found out I was missing an npm dependency;

npm ERR! missing: meteor-node-stubs@~0.2.0, required by ...

Doing a meteor npm install --save fixed it.