Skip to content

@void/svelte's root export has no type declarations, so svelte-check fails in a new Svelte app #972

In progress

Description

@hyfdev

After npm create void with Svelte and the default D1 starter, npx svelte-check reports seven errors inside @void/svelte:

node_modules/@void/svelte/src/runtime/index.ts:3:27
Error: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.

The package root points TypeScript at src/runtime/index.ts, whose re-exports end in .ts, and the starter's config doesn't enable that flag.

An existing Vite Svelte app set up as the Pages guide describes gets the same seven errors from npm run check once a checked component imports from @void/svelte.

To reproduce in Void 1.12.2, run npm create void@1.12.2 app, pick Svelte, accept the defaults and skip deployment, then run npx svelte-check in app.

#973 fixes it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions