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
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)`
The workaround is to not put the typia call into the script section of an SFC component, and instead define a function that uses the typia call in another .ts file and import it to the SFC component.
// typia.tsimport{SearchQuery}from"@/ts/domain/search.ts";importtypiafrom'typia'exportfunctionisSearchQuery(searchQuery: any): searchQuery is SearchQuery{returntypia.is<SearchQuery>(searchQuery)}
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 | )
| ^
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
The text was updated successfully, but these errors were encountered: