ghost-cursor
ghost-cursor copied to clipboard
Uncaught SyntaxError: Cannot use import statement outside a module
i keep getting the following error: Uncaught SyntaxError: Cannot use import statement outside a module when trying to use it together with puppeteer - is their a version thats compatible with the current puppeteer version?
You can import ghost-cursor in the following way
const { createCursor } = require('ghost-cursor');
const cursor = createCursor(page);