Willdune
Willdune
DDeno
Created by Willdune on 9/10/2023 in #help
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>;
}
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';
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?
2 replies