TypeScript: Undefined directives when imported #845
Unanswered
targetlucked69
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Yeah, I realized after releasing the feature that TS strips imports away that aren't used. You can assign it to a local variable to make it not do that. Or tell TS to only strip away type imports. Although the latter forces all type imports to look like |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, this is an issue related to isaacHagoel/solid-dnd-directive#6
When creating directive on the same file, it works as expected. But once you try to put it in another file and import it, you get a
directive_name is not defined
. Am I missing something?I am using vite btw.
UPDATE: It works without TypeScript.
Beta Was this translation helpful? Give feedback.
All reactions