score:1

I'm guessing you're exporting the function not the way you're supposed to. Your function should look something like this:

export const func = () => {
  // Code.
};

Importing it would look like this:

import { func } from '[path]'

Related Query

More Query from same tag