Rayrun
\n> 4 | \n\nWhy does it complains about JSX element when I picked it should use Svelte?","url":"https://ray.run/discord-forum/threads/294-how-do-you-suppose-to-make-it-work-with-svelte#message-900"}],"dateModified":"2023-05-15T11:29:40.488Z","datePublished":"2023-05-15T11:29:40.488Z","discussionUrl":"https://ray.run/discord-forum/threads/1107630879620206745-how-do-you-suppose-to-make-it-work-with-svelte","headline":"How do you suppose to make it work with Svelte?","url":"https://ray.run/discord-forum/"}
← Back to Discord Forum

How do you suppose to make it work with Svelte?

gustafssonzposted in #help-playwright
Open in Discord
gustafssonz
gustafssonz

I've setup a new svelte project and followed the installation. I also installed the 'Experimental: Components' part. The Button is simple and the test is more or less nothing at this point. Yet i get this error:

Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>? (4:0)

2 | export let label = "hello"; 3 | </script>

4 | <button> | ^ 5 | {label} 6 | </button>

Why does it complains about JSX element when I picked it should use Svelte?

Screenshot_2023-05-15_at_13.28.20.png
Screenshot_2023-05-15_at_13.28.40.png

This thread is trying to answer question "Why is the user getting an error message related to JSX elements when they are using Svelte?"

0 replies
TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].