Closed skyuplam closed 9 months ago
Can you describe how you got that error and what you are trying to do? I don't see why we would need babel as a dependency, it is only used as a development tool afaik.
It is described from Babel’s doc. If have Yarn with PnP, it will error out as well.
On Sun, Feb 25, 2024 at 19:19 Karel Ledru @.***> wrote:
Can you describe how you got that error and what you are trying to do? I don't see why we would need babel as a dependency, it is only used as a development tool afaik.
— Reply to this email directly, view it on GitHub https://github.com/i18next/i18next-parser/issues/975#issuecomment-1963019832, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABYSBILSHFXM4CEIHVIZJTYVN6DZAVCNFSM6AAAAABDQYAYHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRTGAYTSOBTGI . You are receiving this because you authored the thread.Message ID: @.***>
So I have just added the step to reproduce the issue.
However, as I have already mentioned that the @babel/runtime
dependency is required as stated from the Babel-plugin-transform-runtime Installation doc:
Install it as development dependency.
yarn add --dev @babel/plugin-transform-runtime
and @babel/runtime as a production dependency (since it's for the "runtime").yarn add @babel/runtime
👈🏻 👀
You can read further to the Why section if you were wondering why it needs it.
🐛 Bug Report
Missing dependency
@babel/runtime
from thepackage.json
file.To Reproduce
yarn init -2
yarn add -D i18next-parser
yarn i18next
, and check the output.Expected behavior
According to the doc from Babel (https://babeljs.io/docs/babel-plugin-transform-runtime):
Your Environment