Closed lkkushan closed 6 years ago
cabbie
and cabbie-sync
are ES Modules, so you need to use the default export. Instead of:
var assert = require('C:/slimerTest/node_modules/assert');
var {startChromedriver} = require('C:/slimerTest/node_modules/cabbie-sync');
var cabbie = require ('C:/slimerTest/node_modules/cabbie');
Try doing:
var assert = require('assert');
var {startChromedriver} = require('cabbie-sync');
var cabbie = require ('cabbie-sync').default;
My code is -
But im getting an error when i run through node command const driver = cabbie('chromedriver', {debug: true}); ^
TypeError: cabbie is not a function
why is this?