getting TypeError: Cannot read property 'toString' of null while doing gulp jshint in extract.js file - jshint

I'm getting the following error while doing gulp for my web app created in Polymer 1.0 .. i have used third party web component called akyral-details.
/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/src/extract.js:14
file.jshint.extracted = jshintcli.extract(file.contents.toString('utf8')
^
TypeError: Cannot read property 'toString' of null
at /Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/src/extract.js:14:62
at module.exports._.memoize.Minimatch.nocase (/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/src/fileIgnored.js:38:7)
at DestroyableTransform. (/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/src/extract.js:9:5)
at DestroyableTransform._transform (/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/src/stream.js:26:15)
at DestroyableTransform.Transform._read (/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
at doWrite (/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
at writeOrBuffer (/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
at DestroyableTransform.Writable.write (/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
at PassThrough.ondata (_stream_readable.js:540:20)
at PassThrough.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at PassThrough.Readable.push (_stream_readable.js:126:10)
at PassThrough.Transform.push (_stream_transform.js:140:32)
at afterTransform (_stream_transform.js:96:12)
at TransformState.afterTransform (_stream_transform.js:74:12)

Related

TypeError: Cannot set property 'kind' of undefined when try to build nextjs project

trying to build nextjs project I got this error
TypeError: Cannot set property 'kind' of undefined
at transformBlockScopedVariable (/application/node_modules/#babel/plugin-transform-block-scoping/lib/index.js:122:41)
at PluginPass.VariableDeclaration (/application/node_modules/#babel/plugin-transform-block-scoping/lib/index.js:81:9)
at i (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:373015)
at NodePath._call (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:292626)
at NodePath.call (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:292450)
at NodePath.visit (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:293401)
at TraversalContext.visitQueue (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:286761)
at TraversalContext.visitMultiple (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:286362)
at TraversalContext.visit (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:287032)
at Function.traverse.node (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:288552)
I tried to delete node_module and package-lock file, It did not work

TypeError: Cannot set property 'kind' of undefined

trying to run NextJS build I got this error
I am using NextJS version 12.1.6, I tried to remove node_module and package.lock.json but it did not work
any suggestion, please
TypeError: Cannot set property 'kind' of undefined
at transformBlockScopedVariable (/application/node_modules/#babel/plugin-transform-block-scoping/lib/index.js:122:41)
at PluginPass.VariableDeclaration (/application/node_modules/#babel/plugin-transform-block-scoping/lib/index.js:81:9)
at i (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:373015)
at NodePath._call (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:292626)
at NodePath.call (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:292450)
at NodePath.visit (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:293401)
at TraversalContext.visitQueue (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:286761)
at TraversalContext.visitMultiple (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:286362)
at TraversalContext.visit (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:287032)
at Function.traverse.node (/application/node_modules/next/dist/compiled/babel/bundle.js:1890:288552)

React Table TypeError: Cannot read properties of undefined (reading 'isGrouped')

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)

Gulp group media error "must start with number, buffer, array or string"

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

Meteor & Polymer 1.0 - Template.dynamic using helper is not working

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

Resources