Skip to content

Could Not Find a Declaration File for Module when Importing Special Component in Svelte File #90

Description

@KiddoV

TypeScript check keep giving me this error when I import special component like: IonTabs, IonNav, etc...

error

Everything seems to work "fine" (except ** This issue **).

My tsconfig:

{
	"extends": "./.svelte-kit/tsconfig.json",
	"compilerOptions": {
		"typeRoots": ["./node_modules"],
		"types": ["ionic-svelte"],
		"allowJs": true,
		"checkJs": true,
		"esModuleInterop": true,
		"forceConsistentCasingInFileNames": true,
		"resolveJsonModule": true,
		"skipLibCheck": true,
		"sourceMap": true,
		"strict": true,
		"moduleResolution": "bundler"
	}
	// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
	//
	// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
	// from the referenced tsconfig.json - TypeScript does not merge them in
}

When I import my own Svelte Component to another Svelte file, It doesn't seem to have this issue at all.

Is there anyway to get rid of this annoying error?
Thanks,

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions