mistlog / svelte-draft

Develop svelte app in typedraft/typescript
https://mistlog.github.io/svelte-draft-docs
MIT License
36 stars 1 forks source link

Put template inside normal brackets for better IDE support #2

Closed fabian-michael closed 4 years ago

fabian-michael commented 4 years ago

I am using PHPStorm (IntelliJ) and I got an error with the template syntax (statement expected). Putting my template inside normal brackets fixed that.

mistlog commented 4 years ago

Would you like to give an example on "Putting my template inside normal brackets".

The problem I know is that we have to add ";" between adjacent JSX such as :

<div>hi</div>;
<div>hello</div>

I'm not sure if it's related to your question, so an example may be helpful.

fabian-michael commented 4 years ago

Oh seems that I messed up something and it was something else that caused the error. Maybe it was what you mentioned. My bad