DenoDDeno
Powered by
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>;
}
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?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

does not provide an export named... module import
ChilliSniffCChilliSniff / help
4y ago
The requested module 'npm:@jest/globals' does not provide an export named 'describe'
bzm3rBbzm3r / help
12mo ago
The requested module 'test/jsx-runtime' does not provide an export named 'jsxs'
taiwannumberoneTtaiwannumberone / help
3y ago
error: module 'node:fs' does not provide an export named 'globSync'
OxooxoOOxooxo / help
15mo ago