Problem with `esm` modules
ahmafi opened this issue · comments
I have a typescript project which doesn't have "type": "module"
in it's package.json
. And I'm getting this error:
error - /.../node_modules/capacitor-native-biometric/dist/esm/index.js:1
import { registerPlugin } from '@capacitor/core';
^^^^^^
SyntaxError: Cannot use import statement outside a module