solidjs / solid

A declarative, efficient, and flexible JavaScript library for building user interfaces.
https://solidjs.com
MIT License
32.05k stars 914 forks source link

directive support in vs code #642

Closed tanekim88 closed 3 years ago

tanekim88 commented 3 years ago

What editor would you recommend for us to use for Solid js? I am currently using vs code, but I am getting syntax error for directive: image

And this is my tsconfig.json, which is generated by solid js template image

FlatMapIO commented 3 years ago

I have the same problem. I don't know if it's the typescript itself.

atk commented 3 years ago

Did you add your directive to the module "solid-js" / namespace JSX / interface Directives like described in the docs? https://www.solidjs.com/docs/latest/api#use%3A___

tanekim88 commented 3 years ago

@atk Thanks for that link. That solved the issue!