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?
This thread is trying to answer question "Why is the user getting an error message related to JSX elements when they are using Svelte?"
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].