Error in a node compile with dataTable.select.js
Error in a node compile with dataTable.select.js
OlivierFaure
Posts: 1Questions: 1Answers: 0
Hi,
The project compile perfectly until i add dataTable.select.js : here the error with "npm run compile" :
events.js:160
throw er; // Unhandled 'error' event
^
TypeError: /Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/custom/js/extensions/dataTables.select.js: Property callee of CallExpression expected node to be of a type ["Expression"] but instead got null
at Object.validate (/Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/node_modules/gulp-babel/node_modules/babel-core/node_modules/babel-types/lib/definitions/index.js:109:13)
at Object.validate (/Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/node_modules/gulp-babel/node_modules/babel-core/node_modules/babel-types/lib/index.js:505:9)
at NodePath._replaceWith (/Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/node_modules/gulp-babel/node_modules/babel-core/node_modules/babel-traverse/lib/path/replacement.js:176:7)
at NodePath._remove (/Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/node_modules/gulp-babel/node_modules/babel-core/node_modules/babel-traverse/lib/path/removal.js:58:10)
at NodePath.remove (/Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/node_modules/gulp-babel/node_modules/babel-core/node_modules/babel-traverse/lib/path/removal.js:30:8)
at PluginPass.CallExpression (/Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/node_modules/babel-plugin-transform-es2015-modules-umd/node_modules/babel-plugin-transform-es2015-modules-amd/lib/index.js:42:12)
at NodePath._call (/Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/node_modules/gulp-babel/node_modules/babel-core/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/node_modules/gulp-babel/node_modules/babel-core/node_modules/babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (/Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/node_modules/gulp-babel/node_modules/babel-core/node_modules/babel-traverse/lib/path/context.js:105:12)
at TraversalContext.visitQueue (/Users/olivier/WiseDyn/Dev/pixeladmin-2.3.1/node_modules/gulp-babel/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:150:16)
i'm not pro of npm so i have no idea nor google
Thanks for help, even just to knowing where search...
Olivier
This discussion has been closed.
Answers
Can you tell me a little more about how you are using it so I can try to recreate the issue please? What does your
compile
script do for example? How are you including Select in your scripts?Allan