-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Got an error with react server components in v0.7 #1410
Labels
Comments
ryoppippi
changed the title
Got an error with Next.js server functions
Got an error with react server components
Dec 3, 2024
ryoppippi
changed the title
Got an error with react server components
Got an error with react server components in v0.7
Dec 3, 2024
Closed
@ryoppippi Is it possible to take a new line in the "use strict";
"use server"; Or no new line allowed in the "use XXX" statements like below? "use strict";
"use server"; |
Don't mind, just be fixed, and sooner be published v7.0.1. |
@ryoppippi In the other case, template literal is allowed? "use strict";
'use server';
`use php`
import typia, { tags } from "typia";
typia.createIs<string & tags.Format<"uuid">>(); |
This code does work!! |
Thank you, PR has been registered, and sooner be published. |
samchon
added a commit
to samchon/nestia
that referenced
this issue
Dec 3, 2024
samchon
added a commit
to samchon/nestia
that referenced
this issue
Dec 3, 2024
Fix samchon/typia#1410: `"use server"` case
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Note that, the bug you're reporting may have registered in the issues by another user. Even the bug you're reporting may have been fixed in the
@next
version. In such reasons, I recommend you to check the old issues and reproduct your code with the@next
version before publishing the bug reporting issue.`npm install --save-dev typia@next`
When the same error occurs even in the
@next
version, then please fill the below template:📝 Summary
Write a short summary of the bug in here.
Reproduction
Playground
the error causes from this file https://github.com/ryoppippi/unplugin-typia/blob/989f2298079269a31d0ed37798c09c479ce00481/examples/nextjs/app/RandomData/actions.ts:
This is a tricky bug.
When we use directives like
"use server"
or"use client"
, the directives should be the top of the file.However since typia inserts imports before the actual implementation.
Sorry for the edge case....
The text was updated successfully, but these errors were encountered: