Skip to content

Flag 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5 #8650

@gornostay25

Description

@gornostay25

READ HERE HOW TO FIX IT

#8650 (comment)

Bug report

Describe the bug

My VScode show this in problems tab

Flag 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
  Use 'verbatimModuleSyntax' instead.

.svelte-kit/tsconfig.json

{
	"compilerOptions": {
		"paths": {
			"$lib": [
				"../src/lib"
			],
			"$lib/*": [
				"../src/lib/*"
			]
		},
		"rootDirs": [
			"..",
			"./types"
		],
/////////////////////////////////////////////////////////////////////
		"importsNotUsedAsValues": "error",
/////////////////////////////////////////////////////////////////////
		"isolatedModules": true,
		"preserveValueImports": true,
		"lib": [
			"esnext",
			"DOM",
			"DOM.Iterable"
		],
		"moduleResolution": "node",
		"module": "esnext",
		"target": "esnext"
	},
	"include": [
...
	],
	"exclude": [
...
	]
}

Reproduction

"devDependencies": {
    "@sveltejs/adapter-cloudflare": "^1.1.0",
    "@sveltejs/kit": "^1.2.2",
    "@typescript-eslint/eslint-plugin": "^5.48.2",
    "@typescript-eslint/parser": "^5.48.2",
    "eslint": "^8.32.0",
    "eslint-config-prettier": "^8.6.0",
    "eslint-plugin-svelte3": "^4.0.0",
    "prettier": "^2.8.3",
    "prettier-plugin-svelte": "^2.9.0",
    "svelte": "^3.55.1",
    "svelte-adapter-bun": "file:../svelte-adapter-bun",
    "svelte-check": "^3.0.2",
    "tslib": "^2.4.1",
    "typescript": "^4.9.4",
    "vite": "^4.0.4",
    "wrangler": "^2.8.0"
  },

Logs

No response

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    Memory: 1.79 GB / 7.91 GB
  Binaries:
    Node: 19.4.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.19.3 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1105.0), Chromium (109.0.1518.49)
  npmPackages:
    @sveltejs/adapter-cloudflare: ^1.1.0 => 1.1.0
    @sveltejs/kit: ^1.2.2 => 1.2.2
    svelte: ^3.55.1 => 3.55.1
    vite: ^4.0.4 => 4.0.4

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions