We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"use client"
The "use client" directive must be placed before other expressions.
ref: https://beta.nextjs.org/docs/rendering/server-and-client-components#convention
input.js
'use client' import {t} from '@lingui/macro' import foo from 'bar' t`Text`
package.json
{ "devDependencies": { "@lingui/swc-plugin": "0.2.0", "@swc/cli": "0.1.62", "@swc/core": "1.3.36" } }
import { i18n } from "@lingui/core"; "use client"; import foo from "bar"; i18n._("Text");
"use client"; import { i18n } from "@lingui/core"; import foo from "bar"; i18n._("Text");
The text was updated successfully, but these errors were encountered:
Thanks for reporting, i will take a look
Sorry, something went wrong.
fix: insert imports after prologue
e7399f8
fixes: #21
Fixed in the 0.2.1
fix: insert imports in place of macro imports
e7f99d6
related: #21 #25
Successfully merging a pull request may close this issue.
ref: https://beta.nextjs.org/docs/rendering/server-and-client-components#convention
Minimal reproducible example
input.js
package.json
Actual
Expected
The text was updated successfully, but these errors were encountered: