Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte 5: Language server keeps crashing after updating passed 108.6.1 version of Svelte for VS code #2512

Open
HighFunctioningSociopathSH opened this issue Sep 23, 2024 · 9 comments

Comments

@HighFunctioningSociopathSH

Describe the bug

After updating to 109.0.0 version of Svelte for VS code. suddenly the language server keeps freezing and crashes after a while.
I couldn't recreate this issue in a new Svelte project and it only happens on a big project that has considerable amount of .svelte and .ts files in it. I think the only useful thing I can supply is the error output below.

Reproduction

No Reproduction.

Logs

Initialize language server at  file:///e%3A/Job/Yapit%20UI
Initialize new ts service at  e:/Job/Yapit UI/tsconfig.json
Trying to load configs for e:/Job/Yapit UI
Loaded config at  e:\Job\Yapit UI\svelte.config.js
SnapshotManager File Statistics:
Project files: 221
Svelte files: 64
From node_modules: 0
Total: 221

<--- Last few GCs --->

[18020:00007850004E0000]    76531 ms: Mark-Compact 3944.1 (4089.2) -> 3940.9 (4093.7) MB, pooled: 0 MB, 923.61 / 0.00 ms  (average mu = 0.791, current mu = 0.487) allocation failure; scavenge might not succeed
[18020:00007850004E0000]    78382 ms: Mark-Compact 3948.6 (4093.9) -> 3944.3 (4097.2) MB, pooled: 0 MB, 1813.97 / 0.00 ms  (average mu = 0.549, current mu = 0.020) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 00007FF67ADD715A uv_cpumask_size+72266
 2: 00007FF67AD5213E node::OnFatalError+654
 3: 00007FF67DD59CF4 v8::Function::NewInstance+868
 4: 00007FF67DD59C63 v8::Function::NewInstance+723
 5: 00007FF67DE0B8B7 v8::CppHeap::wrapper_descriptor+61447
 6: 00007FF67994B2C8 v8::CppHeap::CollectStatistics+90888
 7: 00007FF67C542F40 v8::internal::ThreadIsolation::StartOfJitAllocationAt+280208
 8: 00007FF67C53463E v8::internal::ThreadIsolation::StartOfJitAllocationAt+220558
 9: 00007FF67C6EE7BA v8::internal::StrongRootAllocatorBase::deallocate_impl+1725034
10: 00007FF67CAE207A v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2664570
11: 00007FF67CA7DE75 v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2254453
12: 00007FF6DD86CA32 
[Error - 11:19:16 AM] Server process exited with code 134.
[Info  - 11:19:16 AM] Connection to server got closed. Server will restart.
true
Initialize language server at  file:///e%3A/Job/Yapit%20UI
Initialize new ts service at  e:/Job/Yapit UI/tsconfig.json
Trying to load configs for e:/Job/Yapit UI
Loaded config at  e:\Job\Yapit UI\svelte.config.js
SnapshotManager File Statistics:
Project files: 221
Svelte files: 64
From node_modules: 0
Total: 221

<--- Last few GCs --->

[9024:00002B68004E0000]    52619 ms: Mark-Compact 3943.1 (4088.4) -> 3940.0 (4092.9) MB, pooled: 0 MB, 917.30 / 0.00 ms  (average mu = 0.753, current mu = 0.412) allocation failure; scavenge might not succeed
[9024:00002B68004E0000]    54524 ms: Mark-Compact 3947.8 (4093.4) -> 3943.4 (4096.7) MB, pooled: 0 MB, 1874.00 / 0.00 ms  (average mu = 0.485, current mu = 0.017) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 00007FF67ADD715A uv_cpumask_size+72266
 2: 00007FF67AD5213E node::OnFatalError+654
 3: 00007FF67DD59CF4 v8::Function::NewInstance+868
 4: 00007FF67DD59C63 v8::Function::NewInstance+723
 5: 00007FF67DE0B8B7 v8::CppHeap::wrapper_descriptor+61447
 6: 00007FF67994B2C8 v8::CppHeap::CollectStatistics+90888
 7: 00007FF67C542F40 v8::internal::ThreadIsolation::StartOfJitAllocationAt+280208
 8: 00007FF67C53463E v8::internal::ThreadIsolation::StartOfJitAllocationAt+220558
 9: 00007FF67C6EE7BA v8::internal::StrongRootAllocatorBase::deallocate_impl+1725034
10: 00007FF67CAE207A v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2664570
11: 00007FF67CA7DE75 v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2254453
12: 00007FF6DDA6004D 
[Error - 11:20:11 AM] Server process exited with code 134.
[Info  - 11:20:11 AM] Connection to server got closed. Server will restart.
true
Initialize language server at  file:///e%3A/Job/Yapit%20UI
Initialize new ts service at  e:/Job/Yapit UI/tsconfig.json
Trying to load configs for e:/Job/Yapit UI
Loaded config at  e:\Job\Yapit UI\svelte.config.js
SnapshotManager File Statistics:
Project files: 221
Svelte files: 64
From node_modules: 0
Total: 221

<--- Last few GCs --->

[248:00002A20004E0000]    55272 ms: Mark-Compact 3942.8 (4088.3) -> 3939.5 (4092.8) MB, pooled: 0 MB, 990.75 / 0.00 ms  (average mu = 0.771, current mu = 0.486) allocation failure; scavenge might not succeed
[248:00002A20004E0000]    57318 ms: Mark-Compact 3947.3 (4093.3) -> 3943.0 (4096.5) MB, pooled: 0 MB, 2016.33 / 0.00 ms  (average mu = 0.508, current mu = 0.015) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 00007FF67ADD715A uv_cpumask_size+72266
 2: 00007FF67AD5213E node::OnFatalError+654
 3: 00007FF67DD59CF4 v8::Function::NewInstance+868
 4: 00007FF67DD59C63 v8::Function::NewInstance+723
 5: 00007FF67DE0B8B7 v8::CppHeap::wrapper_descriptor+61447
 6: 00007FF67994B2C8 v8::CppHeap::CollectStatistics+90888
 7: 00007FF67C542F40 v8::internal::ThreadIsolation::StartOfJitAllocationAt+280208
 8: 00007FF67C53463E v8::internal::ThreadIsolation::StartOfJitAllocationAt+220558
 9: 00007FF67C6EE7BA v8::internal::StrongRootAllocatorBase::deallocate_impl+1725034
10: 00007FF67CAE207A v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2664570
11: 00007FF67CA7DE75 v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2254453
12: 00007FF6DDC2FC3D 
[Error - 11:21:09 AM] Server process exited with code 134.
[Info  - 11:21:09 AM] Connection to server got closed. Server will restart.
true
Initialize language server at  file:///e%3A/Job/Yapit%20UI
Initialize new ts service at  e:/Job/Yapit UI/tsconfig.json
Trying to load configs for e:/Job/Yapit UI
Loaded config at  e:\Job\Yapit UI\svelte.config.js
SnapshotManager File Statistics:
Project files: 221
Svelte files: 64
From node_modules: 0
Total: 221

<--- Last few GCs --->

[15312:00007B3C004E0000]    55833 ms: Scavenge (interleaved) 3946.6 (4088.8) -> 3945.3 (4090.3) MB, pooled: 0 MB, 7.51 / 0.00 ms  (average mu = 0.810, current mu = 0.641) allocation failure; 
[15312:00007B3C004E0000]    55992 ms: Scavenge (interleaved) 3948.1 (4090.3) -> 3946.5 (4099.5) MB, pooled: 0 MB, 147.48 / 0.00 ms  (average mu = 0.810, current mu = 0.641) allocation failure; 


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 00007FF67ADD715A uv_cpumask_size+72266
 2: 00007FF67AD5213E node::OnFatalError+654
 3: 00007FF67DD59CF4 v8::Function::NewInstance+868
 4: 00007FF67DD59C63 v8::Function::NewInstance+723
 5: 00007FF67DE0B8B7 v8::CppHeap::wrapper_descriptor+61447
 6: 00007FF67994B2C8 v8::CppHeap::CollectStatistics+90888
 7: 00007FF67C542F40 v8::internal::ThreadIsolation::StartOfJitAllocationAt+280208
 8: 00007FF67C53463E v8::internal::ThreadIsolation::StartOfJitAllocationAt+220558
 9: 00007FF67C6EE7BA v8::internal::StrongRootAllocatorBase::deallocate_impl+1725034
10: 00007FF67CAE207A v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2664570
11: 00007FF67CA44BA6 v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2020262
12: 00007FF6DCB90540 
[Error - 11:22:05 AM] Server process exited with code 134.
[Info  - 11:22:05 AM] Connection to server got closed. Server will restart.
true
Initialize language server at  file:///e%3A/Job/Yapit%20UI
Initialize new ts service at  e:/Job/Yapit UI/tsconfig.json
Trying to load configs for e:/Job/Yapit UI
Loaded config at  e:\Job\Yapit UI\svelte.config.js
SnapshotManager File Statistics:
Project files: 221
Svelte files: 64
From node_modules: 0
Total: 221

<--- Last few GCs --->

[18048:00002C40004E0000]    54706 ms: Scavenge 3947.3 (4089.8) -> 3946.0 (4091.3) MB, pooled: 0 MB, 3.91 / 0.00 ms  (average mu = 0.734, current mu = 0.491) allocation failure; 
[18048:00002C40004E0000]    54719 ms: Scavenge 3948.8 (4091.3) -> 3947.2 (4100.0) MB, pooled: 0 MB, 3.96 / 0.00 ms  (average mu = 0.734, current mu = 0.491) allocation failure; 


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 00007FF67ADD715A uv_cpumask_size+72266
 2: 00007FF67AD5213E node::OnFatalError+654
 3: 00007FF67DD59CF4 v8::Function::NewInstance+868
 4: 00007FF67DD59C63 v8::Function::NewInstance+723
 5: 00007FF67DE0B8B7 v8::CppHeap::wrapper_descriptor+61447
 6: 00007FF67994B2C8 v8::CppHeap::CollectStatistics+90888
 7: 00007FF67C542F40 v8::internal::ThreadIsolation::StartOfJitAllocationAt+280208
 8: 00007FF67C53463E v8::internal::ThreadIsolation::StartOfJitAllocationAt+220558
 9: 00007FF67C6EE7BA v8::internal::StrongRootAllocatorBase::deallocate_impl+1725034
10: 00007FF67CAE207A v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2664570
11: 00007FF6DD52F4C4 
[Error - 11:23:00 AM] Server process exited with code 134.
[Info  - 11:23:00 AM] Connection to server got closed. Server will restart.
true
Initialize language server at  file:///e%3A/Job/Yapit%20UI
Initialize new ts service at  e:/Job/Yapit UI/tsconfig.json
Trying to load configs for e:/Job/Yapit UI
Loaded config at  e:\Job\Yapit UI\svelte.config.js
SnapshotManager File Statistics:
Project files: 221
Svelte files: 64
From node_modules: 0
Total: 221

<--- Last few GCs --->

[3000:00004CA4004E0000]   102759 ms: Mark-Compact 3943.5 (4089.0) -> 3940.2 (4093.2) MB, pooled: 0 MB, 977.33 / 0.00 ms  (average mu = 0.757, current mu = 0.448) allocation failure; scavenge might not succeed
[3000:00004CA4004E0000]   104734 ms: Mark-Compact 3948.0 (4093.7) -> 3943.7 (4096.5) MB, pooled: 0 MB, 1937.16 / 0.00 ms  (average mu = 0.498, current mu = 0.019) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 00007FF67ADD715A uv_cpumask_size+72266
 2: 00007FF67AD5213E node::OnFatalError+654
 3: 00007FF67DD59CF4 v8::Function::NewInstance+868
 4: 00007FF67DD59C63 v8::Function::NewInstance+723
 5: 00007FF67DE0B8B7 v8::CppHeap::wrapper_descriptor+61447
 6: 00007FF67994B2C8 v8::CppHeap::CollectStatistics+90888
 7: 00007FF67C542F40 v8::internal::ThreadIsolation::StartOfJitAllocationAt+280208
 8: 00007FF67C53463E v8::internal::ThreadIsolation::StartOfJitAllocationAt+220558
 9: 00007FF67C6EE7BA v8::internal::StrongRootAllocatorBase::deallocate_impl+1725034
10: 00007FF67CAE207A v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2664570
11: 00007FF6DD30799D 
[Error - 11:24:45 AM] Client Svelte: connection to server is erroring.
Channel closed
[Error - 11:24:45 AM] Server process exited with code 134.
[Info  - 11:24:45 AM] Connection to server got closed. Server will restart.
true
Initialize language server at  file:///e%3A/Job/Yapit%20UI
Initialize new ts service at  e:/Job/Yapit UI/tsconfig.json
Trying to load configs for e:/Job/Yapit UI
Loaded config at  e:\Job\Yapit UI\svelte.config.js
SnapshotManager File Statistics:
Project files: 221
Svelte files: 64
From node_modules: 0
Total: 221

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-12650H
    Memory: 6.59 GB / 15.63 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    bun: 1.1.3 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (129.0.2792.52)
    Internet Explorer: 11.0.22621.3527

Severity

blocking an upgrade

@jasonlyu123 jasonlyu123 transferred this issue from sveltejs/svelte Sep 23, 2024
@jasonlyu123
Copy link
Member

Can you provide your tsconfig? One of the changes in 109.0 is project reference support. Maybe you're using it and causing a lot more projects to be loaded than before.

@HighFunctioningSociopathSH
Copy link
Author

This is my project's tsconfig and the version is currently 108.6.1

{
  "extends": "./.svelte-kit/tsconfig.json",
  "compilerOptions": {
    "allowJs": true,
    "checkJs": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "resolveJsonModule": true,
    "sourceMap": true,
    "strict": true,
    "verbatimModuleSyntax": true
  },
  "exclude": ["../build/**"]
}

and this the extended tsconfig

{
	"compilerOptions": {
		"paths": {
			"$constants": [
				"../src/lib/constants"
			],
			"$constants/*": [
				"../src/lib/constants/*"
			],
			"$components": [
				"../src/lib/components"
			],
			"$components/*": [
				"../src/lib/components/*"
			],
			"$lib": [
				"../src/lib"
			],
			"$lib/*": [
				"../src/lib/*"
			],
			"$routes": [
				"../src/lib/routes"
			],
			"$routes/*": [
				"../src/lib/routes/*"
			],
			"$styles": [
				"../src/lib/styles"
			],
			"$styles/*": [
				"../src/lib/styles/*"
			],
			"$theme": [
				"../src/lib/theme"
			],
			"$theme/*": [
				"../src/lib/theme/*"
			],
			"$types": [
				"../src/lib/types"
			],
			"$types/*": [
				"../src/lib/types/*"
			],
			"$actions": [
				"../src/lib/actions"
			],
			"$actions/*": [
				"../src/lib/actions/*"
			],
			"$utils": [
				"../src/lib/utils"
			],
			"$utils/*": [
				"../src/lib/utils/*"
			],
			"$assets": [
				"../src/lib/assets"
			],
			"$assets/*": [
				"../src/lib/assets/*"
			]
		},
		"rootDirs": [
			"..",
			"./types"
		],
		"verbatimModuleSyntax": true,
		"isolatedModules": true,
		"lib": [
			"esnext",
			"DOM",
			"DOM.Iterable"
		],
		"moduleResolution": "bundler",
		"module": "esnext",
		"noEmit": true,
		"target": "esnext"
	},
	"include": [
		"ambient.d.ts",
		"non-ambient.d.ts",
		"./types/**/$types.d.ts",
		"../vite.config.js",
		"../vite.config.ts",
		"../src/**/*.js",
		"../src/**/*.ts",
		"../src/**/*.svelte",
		"../tests/**/*.js",
		"../tests/**/*.ts",
		"../tests/**/*.svelte"
	],
	"exclude": [
		"../node_modules/**",
		"../src/service-worker.js",
		"../src/service-worker.ts",
		"../src/service-worker.d.ts"
	]
}

@jasonlyu123
Copy link
Member

Although the exclude config is probably wrong it shouldn't be related. Is this tsconfig the one in your previous log? Or if there are other tsconfig? And if you run "npx tsc --showConfig" does it have any build files in the "files"?

@HighFunctioningSociopathSH
Copy link
Author

Is this tsconfig the one in your previous log?

I'm not exactly sure what you mean, but if you mean this is the same tsconfig from when I post the error logs then that is true.

if there are other tsconfig?

I'm pretty sure these two are the only tsconfig files of the project.

And if you run "npx tsc --showConfig" does it have any build files in the "files"?

This is the result from the "files" when I run the command

    "files": [
        "./.svelte-kit/ambient.d.ts",
        "./.svelte-kit/non-ambient.d.ts",
        "./.svelte-kit/types/src/routes/$types.d.ts",
        "./.svelte-kit/types/src/routes/Accordion/$types.d.ts",
        "./.svelte-kit/types/src/routes/Alert/$types.d.ts",
        "./.svelte-kit/types/src/routes/Animations/$types.d.ts",
        "./.svelte-kit/types/src/routes/Avatar/$types.d.ts",
        "./.svelte-kit/types/src/routes/AvatarGroup/$types.d.ts",
        "./.svelte-kit/types/src/routes/Button/$types.d.ts",
        "./.svelte-kit/types/src/routes/Drawer/$types.d.ts",
        "./.svelte-kit/types/src/routes/Select/$types.d.ts",
        "./.svelte-kit/types/src/routes/Skeleton/$types.d.ts",
        "./.svelte-kit/types/src/routes/SvelteElement/$types.d.ts",
        "./.svelte-kit/types/src/routes/TabGroup/$types.d.ts",
        "./.svelte-kit/types/src/routes/TextField/$types.d.ts",
        "./.svelte-kit/types/src/routes/Transitions/$types.d.ts",
        "./vite.config.ts",
        "./src/lib/scripts/autoPush.js",
        "./src/app.d.ts",
        "./src/lib/index.ts",
        "./src/lib/actions/collapse.ts",
        "./src/lib/actions/focusTrap.ts",
        "./src/lib/actions/forwardEventsBuilder.ts",
        "./src/lib/actions/forwardInnerEvents.ts",
        "./src/lib/actions/index.ts",
        "./src/lib/actions/portalAction.ts",
        "./src/lib/actions/useActions.ts",
        "./src/lib/assets/index.ts",
        "./src/lib/components/index.ts",
        "./src/lib/components/Accordion/AccordionTypes.ts",
        "./src/lib/components/Accordion/index.ts",
        "./src/lib/components/AccordionGroup/AccordionGroupTypes.ts",
        "./src/lib/components/AccordionGroup/index.ts",
        "./src/lib/components/Alert/AlertTypes.ts",
        "./src/lib/components/Alert/index.ts",
        "./src/lib/components/Avatar/AvatarTypes.ts",
        "./src/lib/components/Avatar/index.ts",
        "./src/lib/components/AvatarGroup/AvatarGroupTypes.ts",
        "./src/lib/components/AvatarGroup/index.ts",
        "./src/lib/components/Badge/BadgeTypes.ts",
        "./src/lib/components/Badge/index.ts",
        "./src/lib/components/Button/ButtonTypes.ts",
        "./src/lib/components/Button/index.ts",
        "./src/lib/components/Card/CardTypes.ts",
        "./src/lib/components/Card/index.ts",
        "./src/lib/components/Checkbox/CheckboxTypes.ts",
        "./src/lib/components/Checkbox/index.ts",
        "./src/lib/components/CircularProgress/CircularProgressTypes.ts",
        "./src/lib/components/CircularProgress/index.ts",
        "./src/lib/components/Collapse/CollapseTypes.ts",
        "./src/lib/components/Collapse/index.ts",
        "./src/lib/components/Dialog/DialogTypes.ts",
        "./src/lib/components/Dialog/index.ts",
        "./src/lib/components/Divider/DividerTypes.ts",
        "./src/lib/components/Divider/index.ts",
        "./src/lib/components/Drawer/DrawerTypes.ts",
        "./src/lib/components/Drawer/index.ts",
        "./src/lib/components/LinearProgress/LinearProgressTypes.ts",
        "./src/lib/components/LinearProgress/index.ts",
        "./src/lib/components/Modal/ModalTypes.ts",
        "./src/lib/components/Modal/index.ts",
        "./src/lib/components/Pagination/PaginationTypes.ts",
        "./src/lib/components/Pagination/index.ts",
        "./src/lib/components/Pagination/usePagination.ts",
        "./src/lib/components/PersistentDrawer/PersistentDrawerTypes.ts",
        "./src/lib/components/PersistentDrawer/index.ts",
        "./src/lib/components/Popper/PopperTypes.ts",
        "./src/lib/components/Popper/index.ts",
        "./src/lib/components/Provider/index.ts",
        "./src/lib/components/Radio/RadioTypes.ts",
        "./src/lib/components/Radio/index.ts",
        "./src/lib/components/RadioGroup/RadioGroupTypes.ts",
        "./src/lib/components/RadioGroup/index.ts",
        "./src/lib/components/Ripple/RippleTypes.ts",
        "./src/lib/components/Ripple/index.ts",
        "./src/lib/components/Select/SelectTypes.ts",
        "./src/lib/components/Select/index.ts",
        "./src/lib/components/SelectGroup/SelectGroupTypes.ts",
        "./src/lib/components/SelectGroup/index.ts",
        "./src/lib/components/SelectOption/SelectOptionType.ts",
        "./src/lib/components/SelectOption/index.ts",
        "./src/lib/components/ShareDrawer/index.ts",
        "./src/lib/components/Skeleton/SkeletonTypes.ts",
        "./src/lib/components/Skeleton/index.ts",
        "./src/lib/components/Stack/StackTypes.ts",
        "./src/lib/components/Stack/index.ts",
        "./src/lib/components/SvelteComponent/SvelteComponentTypes.ts",
        "./src/lib/components/SvelteComponent/index.ts",
        "./src/lib/components/SvelteElement/SvelteElementTypes.ts",
        "./src/lib/components/SvelteElement/index.ts",
        "./src/lib/components/Switch/SwitchTypes.ts",
        "./src/lib/components/Switch/index.ts",
        "./src/lib/components/Tab/TabTypes.ts",
        "./src/lib/components/Tab/index.ts",
        "./src/lib/components/TabGroup/TabGroupTypes.ts",
        "./src/lib/components/TabGroup/index.ts",
        "./src/lib/components/Table/TableTypes.ts",
        "./src/lib/components/Table/index.ts",
        "./src/lib/components/Table/TBody/TBodyTypes.ts",
        "./src/lib/components/Table/TBody/index.ts",
        "./src/lib/components/Table/TCell/TCellTypes.ts",
        "./src/lib/components/Table/TCell/index.ts",
        "./src/lib/components/Table/TFoot/TFootTypes.ts",
        "./src/lib/components/Table/TFoot/index.ts",
        "./src/lib/components/Table/THead/THeadTypes.ts",
        "./src/lib/components/Table/THead/index.ts",
        "./src/lib/components/Table/TRow/TRowTypes.ts",
        "./src/lib/components/Table/TRow/index.ts",
        "./src/lib/components/Table/TableColumnsFilter/TableColumnsFilterTypes.ts",
        "./src/lib/components/Table/TableColumnsFilter/index.ts",
        "./src/lib/components/TablePagination/index.ts",
        "./src/lib/components/Tag/index.ts",
        "./src/lib/components/TextField/TextFieldTypes.ts",
        "./src/lib/components/TextField/index.ts",
        "./src/lib/components/TextFieldAdornment/TextFieldAdornmentTypes.ts",
        "./src/lib/components/TextFieldAdornment/index.ts",
        "./src/lib/components/Tooltip/index.ts",
        "./src/lib/constants/context.ts",
        "./src/lib/constants/index.ts",
        "./src/lib/constants/theme.ts",
        "./src/lib/hooks/handleBindableProp.svelte.ts",
        "./src/lib/hooks/handleResponsiveProps.svelte.ts",
        "./src/lib/hooks/handleResponsivePropsWithProxy.svelte.ts",
        "./src/lib/hooks/transitionAnimationManager.svelte.ts",
        "./src/lib/hooks/transitionAnimationTrigger.svelte.ts",
        "./src/lib/hooks/useEffect.ts",
        "./src/lib/hooks/useId.ts",
        "./src/lib/styles/designs/chattyAi.ts",
        "./src/lib/theme/createTheme.ts",
        "./src/lib/theme/defaultThemes.ts",
        "./src/lib/theme/index.ts",
        "./src/lib/types/utils.d.ts",
        "./src/lib/types/context/index.d.ts",
        "./src/lib/types/csstype/csstype.d.ts",
        "./src/lib/types/props/index.d.ts",
        "./src/lib/types/theme/ZIndex.d.ts",
        "./src/lib/types/theme/breakpoints.d.ts",
        "./src/lib/types/theme/index.d.ts",
        "./src/lib/types/theme/palette.d.ts",
        "./src/lib/types/theme/portals.d.ts",
        "./src/lib/types/theme/propsDefaultValues.d.ts",
        "./src/lib/types/theme/shadows.d.ts",
        "./src/lib/types/validElements/index.ts",
        "./src/lib/utils/chooseBreakpoint.ts",
        "./src/lib/utils/color.ts",
        "./src/lib/utils/functions.ts",
        "./src/lib/utils/handleContainerProp.svelte.ts",
        "./src/lib/utils/handleContainerPropWithProxy.svelte.ts",
        "./src/lib/utils/handleRestStyles.ts",
        "./src/lib/utils/handleStyleObjectOrFunction.ts",
        "./src/lib/utils/index.ts",
        "./src/lib/utils/merge.ts",
        "./src/lib/utils/moveFocusFrom.ts",
        "./src/lib/utils/scroll.ts",
        "./src/lib/utils/theme.ts",
        "./src/lib/utils/undoStack.ts",
        "./src/routes/+layout.server.ts"
    ],

@jasonlyu123
Copy link
Member

jasonlyu123 commented Sep 24, 2024

That all seems normal. Can you provide the package.json? Maybe for some reason, an icon library now loads Svelte files instead of d.ts files or something?

@HighFunctioningSociopathSH
Copy link
Author

This is the content of my package.json

{
  "name": "yapitui",
  "version": "0.58.0",
  "license": "MIT",
  "scripts": {
    "dev": "vite dev",
    "build": "vite build && npm run package && npm run post",
    "post": "node scripts/post-build.js",
    "preview": "vite preview",
    "package": "svelte-kit sync && svelte-package && publint",
    "prepublishOnly": "npm run package",
    "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
    "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
    "lint": "prettier --plugin-search-dir . --check . && eslint .",
    "format": "prettier --plugin-search-dir . --write ."
  },
  "files": [
    "*"
  ],
  "dependencies": {
    "@ctrl/tinycolor": "^4.1.0",
    "@floating-ui/core": "^1.6.1",
    "@formkit/auto-animate": "^0.8.2",
    "focus-trap": "^7.5.4",
    "svelte-floating-ui": "^1.5.5"
  },
  "devDependencies": {
    "@sveltejs/adapter-auto": "^3.2.0",
    "@sveltejs/kit": "^2.5.7",
    "@sveltejs/package": "^2.3.1",
    "@sveltejs/vite-plugin-svelte": "^3.1.1",
    "@types/js-cookie": "^3.0.6",
    "@types/lodash": "^4.17.1",
    "@types/mousetrap": "^1.6.15",
    "@types/node": "^20.12.11",
    "@typescript-eslint/eslint-plugin": "^7.8.0",
    "@typescript-eslint/parser": "^7.8.0",
    "csstype": "^3.1.3",
    "eslint": "^9.2.0",
    "eslint-config-prettier": "^9.1.0",
    "eslint-plugin-svelte": "^2.38.0",
    "fs-extra": "^11.2.0",
    "js-cookie": "^3.0.5",
    "lodash": "^4.17.21",
    "prettier": "^3.2.5",
    "prettier-plugin-svelte": "^3.2.3",
    "publint": "^0.2.7",
    "sass": "^1.77.0",
    "svelte": "^5.0.0-next.258",
    "svelte-check": "^3.8.0",
    "svelte-inspector": "^0.0.3",
    "svelte-preprocess": "^5.1.4",
    "svelte-preprocess-cssmodules": "^2.2.4",
    "tslib": "^2.6.2",
    "type-fest": "^4.18.2",
    "typescript": "^5.5.3",
    "vite": "^5.2.11"
  },
  "type": "module"
}

@jasonlyu123
Copy link
Member

jasonlyu123 commented Sep 24, 2024

Yeah. Sadly, I still can't reproduce with the info you provide and I am running out of ideas. We'll need a reproduction to help you. You can try gradually moving stuff to an empty SvelteKit project until the problem appears. The last out-of-memory report ends up being caused by library-generated code. If you have something similar I would suggest you start from there.

@sebwib
Copy link

sebwib commented Oct 8, 2024

Quick fix / import suggestions constantly break for me in VS Code. Sometimes restarting Svelte language server fixes it, but many times it does not.
Any file that has #snippet or @render keywords simply refuses to work with both prettier and Quickfix/import suggestion

@jasonlyu123
Copy link
Member

@sebwib These are unrelated issues. The formatting should be #2426. As for the Quick fix and import problem, please open a separate issue with reproduction.

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

No branches or pull requests

3 participants