Techy Things

Error: variable @btn-border-radius-base is undefined 0

Error: variable @btn-border-radius-base is undefined

C:\dev\cw2\node_modules\gulp-less\node_modules\accord\node_modules\when\lib\decorators\unhandledRejection.js:80 throw e; ^ Error: variable @btn-border-radius-base is undefined in file C:\dev\cw2\bower_components\bootstrap\less\buttons.less line no. 20 Solution: I don't know what is the proper fix, and in the meantime I'm doing this patch : In...

throw er; // Unhandled 'error' event less/parser.js:333:27 0

throw er; // Unhandled 'error' event less/parser.js:333:27

events.js:85 throw er; // Unhandled 'error' event ^ Error at new Parser (C:\dev\cw2\node_modules\gulp-less\node_modules\less\lib\less\parser.js:333:27) at Object.less.render (C:\dev\cw2\node_modules\gulp-less\node_modules\less\lib\less\index.js:18:22) at Transform._transform (C:\dev\cw2\node_modules\gulp-less\index.js:38:10) at Transform._read (C:\dev\cw2\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:184:10) at Transform._write (C:\dev\cw2\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:172:12) at doWrite (C:\dev\cw2\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:237:10) at writeOrBuffer (C:\dev\cw2\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:227:5) at Transform.Writable.write (C:\dev\cw2\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:194:11)...

Error: failed to connect to [localhost:27017] 0

Error: failed to connect to [localhost:27017]

Application started: { port: '9100', env: undefined } events.js:85 throw er; // Unhandled 'error' event ^ Error: failed to connect to [localhost:27017] at null. (C:\dev\boar-stack-boilerplate3\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\server.js:555:74) at emit (events.js:118:17) at null. (C:\dev\boar-stack-boilerplate3\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\connection_pool.js:156:15) at emit (events.js:110:17)...

How to correctly pass options to Backbone Collection 0

How to correctly pass options to Backbone Collection

Good var myCollection = new Asset.Collection(null, options); Wrong var myCollection = new Asset.Collection(options); Wrong (this will initialize a collection of 1 model with default values) var myCollection = new Asset.Collection({}, options);   Also when...

Add GET parameter to a backbone fetch model 0

Add GET parameter to a backbone fetch model

Fetch model with GET parameters in URL The solution is to add data: $.param({ mySuperVariableName: 1}) in the fetch options. Folders.data.fetch( { data: $.param({ showContent: 1}), success:function(model, response, options) { //model.deferred.resolve(); }, error:function(model, response, options) {...