precompile feedback
#2209
Replies: 5 comments 27 replies
-
|
I tested precompile feature, it works well! Overall js bundle size is decreased about 9-15kbs depending on page. Interesting that precompilation finds invalid keys in translations. |
Beta Was this translation helpful? Give feedback.
-
|
During testing, I encountered the following error when trying to use a translation string with a variable. On dev mode My messages file: "HomePage": {
"header": {
"balance": "Баланс: {balance} сум",
"topUpBalance": "Пополнить"
},
},Usage in code: <span className="px-4">
{t("header.balance", {balance: toMoney(userInfo.data.data.balance)})}
</span>Error message: |
Beta Was this translation helpful? Give feedback.
-
|
Upgrading to v4.8.1 breaks our builds (Windows) with error Providing the path manually still doesn't help: |
Beta Was this translation helpful? Give feedback.
-
|
Failed to run dev with bun OS: Widows |
Beta Was this translation helpful? Give feedback.
-
|
The precompilation flag breaks placeholders and plurality rules in my app. Does it matter whether I use turbopack or webpack? My site (with Nextjs 15) only builds using webpack. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Please use this thread to share feedback related to ahead-of-time compilation of messages.
Template for bug reports: https://github.com/amannn/nextjs-test-precompile
Beta Was this translation helpful? Give feedback.
All reactions