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

error TS4082: Default export of the module has or is using private name 'InternalTime' #1062

Closed
jeremy-dupre opened this issue Dec 30, 2024 · 1 comment · Fixed by #1063
Closed
Labels
bug Something isn't working

Comments

@jeremy-dupre
Copy link

jeremy-dupre commented Dec 30, 2024

Describe the bug
Latest version of TypeScript (5.7.2) and vue-tsc (2.2.0) gives the following error:
error TS4082: Default export of the module has or is using private name 'InternalTime'
This is because InternalTime is not exported in index.d.ts, although it is used in other exported structs

To Reproduce
Try to build with TypeScript (5.7.2) and vue-tsc (2.2.0)

Expected behavior
InternalTime should be exported in index.d.ts

@jeremy-dupre jeremy-dupre added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Dec 30, 2024
@davidglezz
Copy link
Contributor

error TS4082: Default export of the module has or is using private name 'InternalTime'.

852 export default (await import('vue')).defineComponent({
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
853 setup() {
    ~~~~~~~~~
... 
872 __typeEl: {} as __VLS_TemplateResult['rootEl'],
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
873 });
    ~~~

Exporting the type fixes the issue.

-interface InternalTime {
+export interface InternalTime {
    hours: number | number[];
    minutes: number | number[];
    seconds: number | number[];
}

@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants