WillduneW
Denoβ€’3y agoβ€’
1 reply
Willdune

The requested module does not provide an export named 'default'

I'm trying to export the following interface:
import User from '../models/User.ts';

export default interface AuthRepository {
  signUp(uer: User): Promise<void>;
}

And the import:
import AuthRepository from '../domain/repository/AuthRepository.ts';


But when running it says The requested module '../domain/repository/AuthRepository.ts' does not provide an export named 'default'

But i already did export other interfaces and imported them, and it worked. I don't know what am i doing wrong, any clue?
Was this page helpful?