You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This comment line is not wrong at the syntax, but I guess, any other formatter in esbuild pipeline transforms from //* into // * because it misunderstand // as start of comment.
So, I don't think this behavior is an unplugin-typia bug, but I guess this error can be prevented by stopping to add the hash comment multiple times or inserting newline between the comments.(I haven't tried it yet, but I hope to when I have time)
I'm not entirely sure which formatter (or if it even is a formatter) is at the root of the issue, but after removing every plugin except typia from the tsconfig.json, it appeared to resolve the problem.
So the root of cause might be on @0no-co/graphql side. However, since the plugin by itself seems to handle consecutive comments(/* foo *//* foo */) just fine, I'm still not sure. It looks like it could be a compatibility of two plugins issue.
EDIT: @0no-co/graphql didn't seem to be a factor. The error still occurred after uninstalling it and removing all unplugin-typia cache.
I have not been able to create Reproduction yet(I tried hard but I couldn't...), so if I can create a patch that works well in my environment, I'll make it a pull(if you feels good). Anyway, for now, I just wanted to share my experience and findings to other users. Thank you.
This is most likely not the bug of unplugin-typia. I'm sorry if you feel annoying(feel free to close, of cource).
I experienced errors occurs in executing esbuild with this plugin multiple times:
I looked at the problematic cache file and found the following at the end:
This comment line is not wrong at the syntax, but I guess, any other formatter in esbuild pipeline transforms from
//*
into// *
because it misunderstand//
as start of comment.So, I don't think this behavior is an unplugin-typia bug, but I guess this error can be prevented by stopping to add the hash comment multiple times or inserting newline between the comments.(I haven't tried it yet, but I hope to when I have time)
I'm not entirely sure which formatter (or if it even is a formatter) is at the root of the issue,
but after removing every plugin except typia from the tsconfig.json, it appeared to resolve the problem.So the root of cause might be on @0no-co/graphql side. However, since the plugin by itself seems to handle consecutive comments(/* foo *//* foo */
) just fine, I'm still not sure. It looks like it could be a compatibility of two plugins issue.EDIT: @0no-co/graphql didn't seem to be a factor. The error still occurred after uninstalling it and removing all unplugin-typia cache.
I have not been able to create Reproduction yet(I tried hard but I couldn't...), so if I can create a patch that works well in my environment, I'll make it a pull(if you feels good). Anyway, for now, I just wanted to share my experience and findings to other users. Thank you.
The text was updated successfully, but these errors were encountered: