Skip to content

import of RootContext with redefinition #4234

@dirk-bester

Description

@dirk-bester

Current Behavior

node_modules.pnpm@skeletonlabs+skeleton-svelte@4.8.0_svelte@5.46.0\node_modules@skeletonlabs\skeleton-svelte\dist\components\avatar\anatomy\root-context.svelte.d.ts

...
import { RootContext } from '../modules/root-context.js';
declare const RootContext: import("svelte").Component<AvatarRootContextProps, {}, "">;
type RootContext = ReturnType<typeof RootContext>;
export default RootContext;

This yields on pnpm run check:
Error: Import declaration conflicts with local declaration of 'RootContext'.
}
import { RootContext } from '../modules/root-context.js';
declare const RootContext: import("svelte").Component<AccordionRootContextProps, {}, "">;

... \node_modules.pnpm@skeletonlabs+skeleton-svelte@4.8.0_svelte@5.46.0\node_modules@skeletonlabs\skeleton-svelte\dist\components\avatar\anatomy\root-co

In total I am experiencing 27 of them from skeletonui which makes it hard to see anything else. 9/10 AIs agree it is too much error to get inferencing done.

Expected Behavior

maybe do
import { RootContext as <renamed>}
That way the name conflict is avoided.

Steps To Reproduce

svelte 5 project
package.json script:
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json
run the check, see the errors.

Stackblitz or Reproduction URL

No response

Environment Information

No response

More Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions