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

error with svelte5 #1409

Closed
ryoppippi opened this issue Dec 3, 2024 · 2 comments
Closed

error with svelte5 #1409

ryoppippi opened this issue Dec 3, 2024 · 2 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ryoppippi
Copy link
Contributor

ryoppippi commented Dec 3, 2024

still got an error using with svelte

✓ 3 modules transformed.
x Build failed in 679ms
error during build:
[vite-plugin-svelte] [plugin vite-plugin-svelte] src/routes/+page.svelte (40:168): src/routes/+page.svelte:40:168 The $ prefix is reserved, and cannot be used for variables and imports
file: /Users/ryoppippi/ghq/github.com/ryoppippi/unplugin-typia/examples/sveltekit/src/routes/+page.svelte:40:168

 38 |          expected: "(number & ExclusiveMinimum<19> & Maximum<100>)",
 39 |          value: input.age
 40 |      })].every((flag: boolean) => flag); const __is = (input: any): input is IMember => "object" === typeof input && null !== input && _io0(input); let errors: any; let $report: any; return (input: any): import("typia").IValidation<IMember> => {
                                                                                                                                                                                      ^
 41 |      if (false === __is(input)) {
 42 |          errors = [];


error: "vite" exited with code 1

I think some variables still using $

Related: ryoppippi/unplugin-typia#335
P.S. Thank you for your hard work as always

@ryoppippi
Copy link
Contributor Author

/000   ../
/009   $FormDataReader/
/032   $HeadersReader/
/012   $ParameterReader/
/010   $QueryReader/
/018   Namespace/
/031   $ProtobufReader.ts
/011   $ProtobufSizer.ts
/033   $ProtobufWriter.ts
/028   $any.ts
/034   $clone.ts
/014   $convention.ts
/027   $dictionary.ts
/016   $every.ts
/024   $guard.ts
/023   $is_between.ts
/035   $join.ts
/029   $number.ts
/017   $report.ts
/030   $rest.ts
/019   $stoll.ts
/013   $string.ts
/022   $strlen.ts
/021   $tail.ts
/020   $throws.ts
/015   $varint.ts
/036   $zigzag.ts
/026   IProtobufWriter.ts
/025   is.ts

Those functions are using $ prefix.
All we need is to rename the functions

I can contribute it I think coz it is good

@ryoppippi ryoppippi changed the title error with svelte error with svelte5 Dec 3, 2024
@samchon
Copy link
Owner

samchon commented Dec 3, 2024

I found that typia.validate<T>() function makes the $ starting variable. I'll fix this with #1410

Also, LLM function schema related function also utilizes the $ starting property name, but no way in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: Done
Development

No branches or pull requests

2 participants