docusaurus-translations & docusaurus-version not working #851
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
difficulty: starter
Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.
good first issue
If you are just getting started with Docusaurus, this issue should be a good place to begin.
🐛 Bug Report
There is a bug in our write-translations file, it couldn't understand ES6.
Note that this bug only occurs when we run
write-translations
when docusaurus is installed as a npm packageRelated code:
https://github.com/facebook/Docusaurus/blob/master/lib/write-translations.js
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
Expected behavior
Generating translations file work correctly
Actual Behavior
Error because it couldn't understand ES6
Travis CI error
Observation
This bug occurs because babel-register ignores node_modules by default. We should allow babel transpiling for Docusaurus project installed in node_modules
Reproducible Demo
https://github.com/endiliey/endiliey.github.io
Update:
yarn version also not working
The text was updated successfully, but these errors were encountered: