Skip to content

Issues with TS in dev mode after upgrade to vite-rails 3, vite 2.5.1 #122

Answered by keithlayne
keithlayne asked this question in Q&A
Discussion options

You must be logged in to vote

There's a similar (old) esbuild issue here: evanw/esbuild#341

I'm already using isolatedModules, which doesn't seem relevant, as I'm seeing direct type exports hit this issue, with no type-reexports involved. Could probably work around this by separating type and value imports, but I'm not going to do that.

Ah, just found the issue, finally: evanw/esbuild#1525

So, definitively an esbuild bug with "importsNotUsedAsValues": "error" (or "preserve" I guess).

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by keithlayne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants