Exception when including empty .less file in phantomjs

I get an exception when I include an empty .less file in my component.js file and load it in a phantomjs broswer. When I add something to that .less file everything works. Here is the dump of my terminal:

> mocha-phantomjs -p /Applications/phantomjs-2.1.1-macosx/bin/phantomjs ./test/index_cli.test.html

{"statusCode":0,"line":2271,"sourceURL":"file:///myproject/node_modules/steal/steal.js","stack":"file:///myproject/node_modules/steal/steal.js:2271:14\ntryCatchReject@file:///myproject/node_modules/steal/steal.js:1183:34\nrunContinuation1@file:///myproject/node_modules/steal/steal.js:1142:18\nwhen@file:///myproject/node_modules/steal/steal.js:963:20\nrun@file:///myproject/node_modules/steal/steal.js:821:17\n_drain@file:///myproject/node_modules/steal/steal.js:97:22\ndrain@file:///myproject/node_modules/steal/steal.js:62:15"} "file:///myproject/node_modules/steal/steal.js:2271:14\ntryCatchReject@file:///myproject/node_modules/steal/steal.js:1183:34\nrunContinuation1@file:///myproject/node_modules/steal/steal.js:1142:18\nwhen@file:///myproject/node_modules/steal/steal.js:963:20\nrun@file:///myproject/node_modules/steal/steal.js:821:17\n_drain@file:///myproject/node_modules/steal/steal.js:97:22\ndrain@file:///myproject/node_modules/steal/steal.js:62:15"

   in error at phantomjs://code/browser-shim.js:120

npm ERR! Test failed.  See above for more details.

Hi @Nithanaroy, this sounds like a bug, would you mind filing an issue here please?

Yeah, created at https://github.com/stealjs/steal/issues/1097

1 Like