getstation/electron-chrome-extension

SyntaxError: Cannot use import statement outside a module

donutsahoy opened this issue · 1 comments

Trying to import ECx, I have import ECx from 'electron-chrome-extension'; at the top of my main.js and I get a SyntaxError: Cannot use import statement outside a module. I think I'm not doing something correctly but unfortunately I can't figure out what I'm doing wrong.

Thank you!

Use this instead

const ECx = require("electron-chrome-extension").default;