Skip to content
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

Terminal is polluted with babel warnings about @babel/plugin-proposal-private-property-in-object loose property #234

Open
vovkvlad opened this issue Sep 9, 2021 · 2 comments

Comments

@vovkvlad
Copy link

vovkvlad commented Sep 9, 2021

Hi!
While running ttag update command to update my .po files I receive a ton of messages stating next:

> ttag update --sortByMsgid true --addComments 'translator:' --extractLocation never "locales/ja.po" "src/"

⠋ [ttag] updating locales/ja.po ...Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-property-in-object since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
	["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
to the "plugins" section of your Babel config.
Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-private-property-in-object.
The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
	["@babel/plugin-proposal-private-methods", { "loose": true }]
to the "plugins" section of your Babel config.
✔ locales/ja.po updated

Initially, I thought that it somehow messing around with my project's babel config, but after looking into it for a while, I managed to reproduce it on an empty project with no babel config at all with only 1 file that uses ttag functionality.
Here is a test empty repo where the bug can be reproduced: https://github.com/vovkvlad/ttag-test-repo

My current version of the libs I'm using:

"ttag": "1.7.24"
"ttag-cli": "1.9.3"

If you need any additional info - please, let me know.
If this bug should go under ttag-cli repo please, let me know as well, I'll transfer it there then.

Thanks in advance!

@vovkvlad vovkvlad changed the title Terminal is polluted with babel warnings about @babel/plugin-proposal-private-property-in-object loose property Terminal is polluted with babel warnings about @babel/plugin-proposal-private-property-in-object loose property Sep 9, 2021
@zansinergise
Copy link

Was this solved in the latest version or does it still appear?

@extremegf
Copy link

Still see this warning on:

	"ttag-cli": "^1.9.3"
	"ttag": "^1.7.24"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants