Skip to content

d.ts files make imports from non-existing files #2018

@UfukUstali

Description

@UfukUstali

Environment

Version

2.18.0

Reproduction

not needed

Description

The build output of this package starting from 2.18.0 makes internal imports from non-existing files which causes the types to not work (maybe other things aswell have not tried out but likely not as i didn't see such imports in js or vue files)

example Button.d.ts file

from 2.18.0

// file <pnpm symlink>\@nuxt\ui\dist\runtime\components\elements\Button.vue.d.ts
import type { PropType } from 'vue';
import type { ButtonColor, ButtonSize, ButtonVariant, Strategy } from '../../types.js'; // <- does not exist
declare const config: {
    base: string;
    font: string;
    rounded: string;
    truncate: string;
.
.
.

from 2.18.3

// file <pnpm symlink>\@nuxt\ui\dist\runtime\components\elements\Button.vue.d.ts
import type { PropType } from 'vue';
import type { ButtonColor, ButtonSize, ButtonVariant, Strategy } from '../../types.js'; // <- does not exist
declare const config: {
    base: string;
    font: string;
    rounded: string;
    truncate: string;
.
.
.

from 2.17.0

// file <pnpm symlink>\@nuxt\ui\dist\runtime\components\elements\Button.vue.d.ts
import type { PropType } from 'vue';
import type { ButtonSize, ButtonVariant } from '../../types'; // <- is working
declare const _default: import("vue").DefineComponent<{
    type: {
        type: StringConstructor;
        default: string;
    };
    block: {
        type: BooleanConstructor;
        default: boolean;
    };
    label: {
        type: StringConstructor;
        default: null;
    };
    loading: {
        type: BooleanConstructor;
.
.
.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions