Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught SyntaxError: The requested module '/@fs/D:/vite-react/src/interface/list.ts' does not provide an export named 'default' #2917

Closed
wolfzwz opened this issue Apr 9, 2021 · 2 comments

Comments

@wolfzwz
Copy link

wolfzwz commented Apr 9, 2021

Describe the bug

When I introduce A.js into B.js, I will report an error:
Uncaught SyntaxError: The requested module '/@fs/D:/vite-react/src/interface/list.ts' does not provide an export named 'default'

Reproduction

a.js

export default interface list{}

b.js

import list form 'a.js'
export {list}

System Info

vite version: 2
Operating System: win 64
Node version: v12.14.1
@wolfzwz
Copy link
Author

wolfzwz commented Apr 9, 2021

This is my solution
a.js

export default interface list {}

b.js

export type {default as list } from 'a.js'

@underfin
Copy link
Member

Simialr with #731

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants