Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use typia with Vite / Vue #266

Closed
wienczny opened this issue Aug 4, 2024 · 2 comments
Closed

How to use typia with Vite / Vue #266

wienczny opened this issue Aug 4, 2024 · 2 comments
Labels

Comments

@wienczny
Copy link

wienczny commented Aug 4, 2024

I'm integrating typia into my vue project using unplugin-typia.
I get the following error when running "npm run build":

`WebstormProjects/typia-example/src/components/HelloWorld.vue?vue&type=script&setup=true&lang.ts:59:0: ERROR: Unexpected ")"
file: .../typia-example/src/components/HelloWorld.vue?vue&type=script&setup=true&lang.ts:59:0

Unexpected ")"
57 | }
58 | });
59 | )
| ^

at failureErrorWithLog (.../typia-example/node_modules/esbuild/lib/main.js:1472:15)
at .../typia-example/node_modules/esbuild/lib/main.js:755:50
at responseCallbacks.<computed> (.../typia-example/node_modules/esbuild/lib/main.js:622:9)
at handleIncomingPacket (.../typia-example/node_modules/esbuild/lib/main.js:677:12)
at Socket.readFromStdout (.../typia-example/node_modules/esbuild/lib/main.js:600:7)
at Socket.emit (node:events:520:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:191:23)`

I setup a small sample project using the vuejs template and applying the setup instruction for unplugin-typia
https://github.com/wienczny/typia-example

There is already a similar issue related to react at samchon/typia#1178

@ryoppippi
Copy link
Owner

ryoppippi commented Aug 4, 2024

currently, vue SFC is not supported #3
If you are interested it, please contribute it

P.S. if you think this is a bug issue, please follow the template next time. Thanks

@ryoppippi ryoppippi closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2024
@ryoppippi
Copy link
Owner

If you are interested in, PRs are welcome !!w @wienczny

@ryoppippi ryoppippi added the vite label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants