{@render ...} unknown
Dudek-AMS opened this issue · 7 comments
Describe the bug
Reproduction
<script lang="ts">
let { children } = $props();
</script>
{@render children()}
Expected behaviour
No Error
System Info
- OS: Windows 11
- IDE: IntelliJ
Language Server: 0.16.10
Typescript Svelte Plugin 0.3.38
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
No response
Is your project using Svelte 5? This error shouldn't be occuring assuming you use the latest language server and have wired it up in Intellij correctly.
Yes its svelte 5. Its correctly setup in intellij and i just replaced the shipped language server with the latest version from local node modules
"devDependencies": {
"@smui/button": "^8.0.0-alpha.0",
"@smui/textfield": "^8.0.0-alpha.0",
"@sveltejs/adapter-node": "^5.1.1",
"@sveltejs/kit": "^2.5.16",
"@tailwindcss/vite": "^4.0.0-alpha.16",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.3",
"@types/node": "^20.14.2",
"@types/saml2-js": "^3.0.4",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"smui-theme": "^7.0.0",
"svelte": "^5.0.0-next.155",
"svelte-awesome-color-picker": "^3.1.0",
"svelte-check": "^3.8.0",
"svelte-google-materialdesign-icons": "^1.0.3",
"svelte-language-server": "^0.16.10",
"tailwindcss": "^4.0.0-alpha.16",
"tslib": "^2.6.3",
"typescript": "^5.4.5",
"typescript-svelte-plugin": "^0.3.38",
"vite": "^5.3.1"
}
Updated to 0.16.11 - same issue
Evidence its running properly
Can you check if the svelte2tsx in the node_modules of your custom language server is the latest version?
peerDep was 0.7.8
ive updated manually to 0.7.10
same result
Did you have a tsconfig.json? Our svelte version detection is using the tsconfig/jsconfig path and fallback to the directory where you open your editor. Maybe you didn't have tsconfig and the editor is opened in the project's parent directory?
If this is still not the case, please try VSCode and see if you can reproduce the problem. If you can't, you might need to ask IntelliJ support. If you do, please provide a reproduction repository.
//tsconfig.json
{
"extends": "./.svelte-kit/tsconfig.json",
"exclude": ["node_modules", ".svelte-kit", "build"],
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"moduleResolution": "bundler",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"strictPropertyInitialization": false
}
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
//
// 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
}
I'm gonna try VSCode, but first need to install it.
//EDIT
no issues on vscode
I can confirm, on EAP (2024.2) the snippet syntax work flawlessly