ghost-cursor icon indicating copy to clipboard operation
ghost-cursor copied to clipboard

Uncaught SyntaxError: Cannot use import statement outside a module

Open MacVej opened this issue 2 years ago • 1 comments

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?

MacVej avatar Jun 20 '23 18:06 MacVej

You can import ghost-cursor in the following way

const { createCursor } = require('ghost-cursor');

const cursor = createCursor(page);

captainjackrana avatar Aug 17 '23 17:08 captainjackrana