You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After messing around with this package it turns out the correct way to import this is const verifier = require('academic-email-verifier').Verifier
I have no idea why this works, but this should fix any import errors you are having
Hi,
When I use:
const verifier = require('academic-email-verifier');
let isAcademic = await verifier.isAcademic(email);
terminal will raise these error:
UnhandledPromiseRejectionWarning: TypeError: verifier.isAcademic is not a function
It means isAcademic is not a function, and when I use:
import { Verifier } from 'academic-email-verifier';
the error will be:
import { Verifier } from 'academic-email-verifier';
^^^^^^
SyntaxError: Cannot use import statement outside a module
How can I solve it?
Thank you!
The text was updated successfully, but these errors were encountered: