We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following file does not check out with svelte-check (I noticed this while looking at sveltejs/prettier-plugin-svelte#149):
svelte-check
<svelte:head> <style> </style> </svelte:head>
> npx [email protected] src/deleteme.svelte Loading svelte-check in workspace: /projects/svelte/prettier-plugin-svelte Getting Svelte diagnostics... ==================================== /projects/svelte/prettier-plugin-svelte/src/deleteme.svelte:5:17 Error: ';' expected. (js) </svelte:head> /projects/svelte/prettier-plugin-svelte/src/deleteme.svelte:6:1 Error: Expression expected. (js)
System (please complete the following information): MacOS, Node 14.4, Svelte-check 1.0.54
The text was updated successfully, but these errors were encountered:
svelte2tsx transformation is wrong, gets transformed to
svelte2tsx
///<reference types="svelte" /> <></>;function render() { <><sveltehead> </sveltehead> </></style> // <---------------- wrong return { props: {}, slots: {}, getters: {}, events: {} }} export default class extends createSvelte2TsxComponent(__sveltets_partial(__sveltets_with_any_event(render))) { }
Sorry, something went wrong.
It's this line of code https://github.com/sveltejs/language-tools/blob/master/packages/svelte2tsx/src/htmlxtojsx/nodes/element.ts#L20 together with the issue I fixed in sveltejs/svelte#5487
That was tricky to find :D
Successfully merging a pull request may close this issue.
The following file does not check out with
svelte-check
(I noticed this while looking at sveltejs/prettier-plugin-svelte#149):System (please complete the following information):
MacOS, Node 14.4, Svelte-check 1.0.54
The text was updated successfully, but these errors were encountered: