I'm getting following exception thrown:
=> Meteor server restarted
I20130820-00:17:58.852(3)? Exception from setTimeout callback: { stack: [Getter] } MongoError: $or requires nonempty array
I20130820-00:17:58.852(3)? at Object.Future.wait (/home/alexei/.meteor/tools/4010e5731d/lib/node_modules/fibers/future.js:326:15)
I20130820-00:17:58.853(3)? at _.extend._nextObject (packages/mongo-livedata/mongo_driver.js:540)
I20130820-00:17:58.853(3)? at _.extend.forEach (packages/mongo-livedata/mongo_driver.js:570)
I20130820-00:17:58.853(3)? at _.extend.map (packages/mongo-livedata/mongo_driver.js:582)
I20130820-00:17:58.853(3)? at _.extend.fetch (packages/mongo-livedata/mongo_driver.js:606)
I20130820-00:17:58.853(3)? at _.each.Cursor.(anonymous function) [as fetch] (packages/mongo-livedata/mongo_driver.js:444)
I20130820-00:17:58.854(3)? at MongoConnection.findOne (packages/mongo-livedata/mongo_driver.js:362)
I20130820-00:17:58.854(3)? at _.extend.findOne (packages/mongo-livedata/collection.js:225)
I20130820-00:17:58.854(3)? at _.extend.findOne (packages/collectionFS/collectionFS_common.js:4)
I20130820-00:17:58.855(3)? at _.extend.checkQueue (packages/collectionFS/collectionFS_filehandlers.js:95)
I20130820-00:17:58.855(3)? - - - - -
I20130820-00:17:58.855(3)? at Object.toError (/home/alexei/.meteor/packages/mongo-livedata/86ae77f282/npm/node_modules/mongodb/lib/mongodb/utils.js:110:11)
I20130820-00:17:58.855(3)? at Cursor.nextObject.self.queryRun (/home/alexei/.meteor/packages/mongo-livedata/86ae77f282/npm/node_modules/mongodb/lib/mongodb/cursor.js:634:54)
I20130820-00:17:58.856(3)? at Cursor.close (/home/alexei/.meteor/packages/mongo-livedata/86ae77f282/npm/node_modules/mongodb/lib/mongodb/cursor.js:903:5)
I20130820-00:17:58.856(3)? at Cursor.nextObject.commandHandler (/home/alexei/.meteor/packages/mongo-livedata/86ae77f282/npm/node_modules/mongodb/lib/mongodb/cursor.js:634:21)
I20130820-00:17:58.856(3)? at Db._executeQueryCommand (/home/alexei/.meteor/packages/mongo-livedata/86ae77f282/npm/node_modules/mongodb/lib/mongodb/db.js:1658:9)
I20130820-00:17:58.856(3)? at Server.Base._callHandler (/home/alexei/.meteor/packages/mongo-livedata/86ae77f282/npm/node_modules/mongodb/lib/mongodb/connection/base.js:378:41)
I20130820-00:17:58.856(3)? at Server.connect.connectionPool.on.server._serverState (/home/alexei/.meteor/packages/mongo-livedata/86ae77f282/npm/node_modules/mongodb/lib/mongodb/connection/server.js:468:18)
I20130820-00:17:58.857(3)? at MongoReply.parseBody (/home/alexei/.meteor/packages/mongo-livedata/86ae77f282/npm/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
I20130820-00:17:58.857(3)? at Server.connect.connectionPool.on.server._serverState (/home/alexei/.meteor/packages/mongo-livedata/86ae77f282/npm/node_modules/mongodb/lib/mongodb/connection/server.js:426:20)
I20130820-00:17:58.857(3)? at EventEmitter.emit (events.js:96:17)
Please advise, what is causing the problem?
I'm on 0.6.5 meteor, 0.6.6 mrt, 0.10.13 node and 1.3.2 npm.
BTW, application itself works fine :)
Please advise.
Thank you,
Alexei
The query inside your Meteor.setTimeout block of code has an $or keyword which contains an empty array. You need to have at least two items in there for your operation.
If you're having trouble/using some kind of way to build an $or query you could update your code with this block of code so we could be of further help
Related
I am using
react-table#7.7.0 and
#types/react-table#7.7.9
Together with react-table-config.d.ts
from this answer.
In my project, I have a table that uses the useExpanded plugin and works perfectly. But when I add useRowSelect and toggleRowSelected is called it crashes. I tried to create a simple example of that error with js but I couldn't.
Things I tried:
Setting selectedRowIds manually using the initialState of the
table works.
Adding the useGroupBy plugin doesn't help. I thought it might help since the error is related to isGrouped.
Using toggleRowSelected(rowId) instead of row.toggleRowSelected() doesn't help.
The error message:
Uncaught TypeError: Cannot read properties of undefined (reading 'isGrouped')
at handleRowById (useRowSelect.js:157:1)
at useRowSelect.js:166:1
at Array.forEach (<anonymous>)
at handleRowById (useRowSelect.js:166:1)
at reducer$8 (useRowSelect.js:170:1)
at useTable.js:124:1
at Array.reduce (<anonymous>)
at useTable.js:117:1
at updateReducer (react-dom.development.js:15318:1)
at Object.useReducer (react-dom.development.js:16425:1)
at Object.useReducer (react.development.js:1512:1)
at useTable (useTable.js:57:1)
at LeftTable (index.tsx:137:1)
at renderWithHooks (react-dom.development.js:14985:1)
at updateFunctionComponent (react-dom.development.js:17356:1)
at beginWork (react-dom.development.js:19063:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)
at invokeGuardedCallback (react-dom.development.js:4056:1)
at beginWork$1 (react-dom.development.js:23964:1)
at performUnitOfWork (react-dom.development.js:22776:1)
at workLoopSync (react-dom.development.js:22707:1)
at renderRootSync (react-dom.development.js:22670:1)
at performSyncWorkOnRoot (react-dom.development.js:22293:1)
at react-dom.development.js:11327:1
at unstable_runWithPriority (scheduler.development.js:468:1)
at runWithPriority$1 (react-dom.development.js:11276:1)
at flushSyncCallbackQueueImpl (react-dom.development.js:11322:1)
at flushSyncCallbackQueue (react-dom.development.js:11309:1)
at discreteUpdates$1 (react-dom.development.js:22420:1)
at discreteUpdates (react-dom.development.js:3756:1)
at dispatchDiscreteEvent (react-dom.development.js:5889:1)
Here is the codesandbox (doesn't recreate the problem)
After I update ng-zorro-antd to Version 1.1.1, and Angular to version 6.0.7, I got the following error for NzPaginationComponent.html:1 :
ERROR TypeError: templateRef.createEmbeddedView is not a function
at ViewContainerRef_.push../node_modules/#angular/core/fesm5/core.js.ViewContainerRef_.createEmbeddedView (core.js:8559)
at NgTemplateOutlet.push../node_modules/#angular/common/fesm5/common.js.NgTemplateOutlet.ngOnChanges (common.js:3834)
at checkAndUpdateDirectiveInline (core.js:9038)
at checkAndUpdateNodeInline (core.js:10306)
at checkAndUpdateNode (core.js:10268)
at debugCheckAndUpdateNode (core.js:10901)
at debugCheckDirectivesFn (core.js:10861)
at Object.eval [as updateDirectives] (NzPaginationComponent.html:1)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:10853)
at checkAndUpdateView (core.js:10250).
Anything I missed to update or I need to amend my code?
may be you should have a look option [nzShowTotal], it should be specified a template.
[nzShowTotal]="totalTpl"
......
<ng-template #totalTpl let-range="range" let-total>{{ 'Total: ' + total}}</ng-template>
I use
var cmq = require('gulp-combine-media-queries')
gulp.task('cmq', function () {
gulp.src('css/style.css')
.pipe(cmq({
log: true
}))
.pipe(gulp.dest('dist'));
});
And this error is output after gulp command:
File css/style.css found.
buffer.js:169
throw new TypeError('must start with number, buffer, array or
string');
^
TypeError: must start with number, buffer, array or string
at fromObject (buffer.js:169:9)
at new Buffer (buffer.js:62:10)
at Transform.transform [as _transform] (/home/user/node_modules/gulp-
combine-media-queries/index.js:152:21)
at Transform._read (/home/user/node_modules/gulp-combine-media-
queries/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at Transform._write (/home/user/node_modules/gulp-combine-media-
queries/node_modules/readable-stream/lib/_stream_transform.js:172:12)
at doWrite (/home/user/node_modules/gulp-combine-media-
queries/node_modules/readable-stream/lib/_stream_writable.js:237:10)
at writeOrBuffer (/home/user/node_modules/gulp-combine-media-
queries/node_modules/readable-stream/lib/_stream_writable.js:227:5)
at Transform.Writable.write (/home/user/node_modules/gulp-combine-
media-queries/node_modules/readable-
stream/lib/_stream_writable.js:194:11)
at write (/home/user/node_modules/vinyl-fs/node_modules/readable-
stream/lib/_stream_readable.js:623:24)
at flow (/home/user/node_modules/vinyl-fs/node_modules/readable-
stream/lib/_stream_readable.js:632:7)
at DestroyableTransform.pipeOnReadable (/home/user/node_modules/vinyl-
fs/node_modules/readable-stream/lib/_stream_readable.js:664:5)
at emitNone (events.js:67:13)
at DestroyableTransform.emit (events.js:166:7)
at emitReadable_ (/home/user/node_modules/vinyl-
fs/node_modules/readable-stream/lib/_stream_readable.js:448:10)
at emitReadable (/home/user/node_modules/vinyl-
fs/node_modules/readable-stream/lib/_stream_readable.js:444:5)
at readableAddChunk (/home/user/node_modules/vinyl-
fs/node_modules/readable-stream/lib/_stream_readable.js:187:9)
Node - 4.2.6, Gulp 3.9.1, npm - 3.5.2
I also used another npms for grouping media and have the same errors. I read many articles with the same problems, but none has helped
looking at media-query code (https://github.com/konitter/gulp-combine-media-queries/blob/master/index.js)
I could see that your file "css/style.css" is not accessible by gulp hence the error.
Please recheck the path and try again
I am trying to play around mixing Polymer (1.0) & Meteor (1.1.0.2). I am trying to use Template.dynamic (http://docs.meteor.com/#/full/template_dynamic) and trying to set the value of template name using helpers as {{> Template.dynamic template=whichMainPanelHelper }} I am getting the below exception:
Exception from Tracker recompute function:
debug.js:41 Error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at Error (native)
at DOMRange.detach (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:512:24)
at DOMRange.setMembers (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:471:12)
at doMaterialize (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2019:22)
at Object.Tracker.nonreactive (https://socioui-rohanray.c9.io/packages/tracker.js?6d0890939291d9780f7e2607ee3af3e7f98a3d9c:593:12)
at doRender (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2015:17)
at https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1865:18
at Function.Template._withTemplateInstanceFunc (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3476:12)
at https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1864:29
at Object.Blaze._withCurrentView (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2197:12)
globalClient.js?2215a2ab608267b0be3f49b7779cbbe0e07bea5b:4 helper : whichMainPanel : drawerPanelMain
debug.js:41 Exception from Tracker recompute function:
debug.js:41 Error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at Error (native)
at DOMRange.detach (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:512:24)
at DOMRange.setMembers (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:471:12)
at doMaterialize (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2019:22)
at Object.Tracker.nonreactive (https://socioui-rohanray.c9.io/packages/tracker.js?6d0890939291d9780f7e2607ee3af3e7f98a3d9c:593:12)
at doRender (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2015:17)
at https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1865:18
at Function.Template._withTemplateInstanceFunc (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3476:12)
at https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1864:29
at Object.Blaze._withCurrentView (https://socioui-rohanray.c9.io/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2197:12)
I have done a repo in Cloud 9 # https://ide.c9.io/rohanray/socioui
can be checked live # https://socioui-rohanray.c9.io
I'm installing node.js on Ubuntu as per these instructions (
http://nodenode.com/post/1197688151/installing-node-js-on-ubuntu-screencast-tutorial )
and I'm recieving the following errors on the final step
I type node hello_node.js
my terminal replies
/home/joe/tmp/hello_node/hello_node.js:1
require(‘http’);
^
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:427:25)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
So, it seems I 'require' http. Am I doing something wrong... or worse, stupid?
You're not using normal single quotes. You have:
require(‘http’);
It should be:
require('http');