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

str.trim is not a function #8280

Closed
VottusCode opened this issue Aug 6, 2020 · 2 comments
Closed

str.trim is not a function #8280

VottusCode opened this issue Aug 6, 2020 · 2 comments

Comments

@VottusCode
Copy link

Bug description

In issue #960 I've discovered that you can enable the emojis in yarn by setting --emoji to true.
I wanted to do so, that is why I've executed the command below. Unfortunetely that didn't work.
I've tried on my Windows 10 laptop running LTS version of Node.js (12.18.3) and it worked there.

Command

yarn config set -- --emoji true

What is the current behavior?
Yarn doesn't do what the command is supposed to do and says that 'str.trim is not a function'

What is the expected behavior?
Setting --emoji to true by default (puts it into .yarnrc)

Steps to Reproduce

  1. Run yarn config set -- --emoji true
  2. Outputs error An unexpected error occurred: "str.trim is not a function".

Environment

  • Node Version: 14.4.0
  • Yarn v1 Version: 1.22.4
  • OS and version: Ubuntu 18.04 (Budgie)
@alanrps
Copy link

alanrps commented Apr 29, 2021

Hello, I tried to reproduce the bug using the mentioned versions, but no error was returned. Are you still having this problem?

@VottusCode
Copy link
Author

No, the issue was with the yarn config file, it couldn't be parsed as the command screwed it up.

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

2 participants