# TypeError \[ERR\_INVALID\_ARG\_TYPE\] when trying to build project using Yarn

**URL:** <https://discourse.roots.io/t/typeerror-err-invalid-arg-type-when-trying-to-build-project-using-yarn/22649>\
**Category:** sage\
**Tags:** sage10\
**Created:** [March 21, 2022, 10:45am UTC](https://discourse.roots.io/t/typeerror-err-invalid-arg-type-when-trying-to-build-project-using-yarn/22649 "2022-03-21T10:45:27Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Mathias](https://discourse.roots.io/letter_avatar_proxy/v4/letter/m/bbe5ce/32.png) [@Mathias](https://discourse.roots.io/u/Mathias)\
**Post date:** [March 22, 2022, 2:02pm UTC](https://discourse.roots.io/t/typeerror-err-invalid-arg-type-when-trying-to-build-project-using-yarn/22649/21 "2022-03-22T14:02:13Z")

</div>

I was just playing with that.

Though it’s new to me, and i’m not sure how to use WSL to work with sage stuff.

Is there a guide anywhere? Or is it like working with powershell/cmd?

Sidenote, i accidently closed the WSL terminal and now i have no idea where to login, if it’s even necessary.

---

<div class="post-metadata">

**Author:** ![alwaysblank](https://discourse.roots.io/user_avatar/discourse.roots.io/alwaysblank/32/11206_2.png) [@alwaysblank](https://discourse.roots.io/u/alwaysblank)\
**Post date:** [March 22, 2022, 2:06pm UTC](https://discourse.roots.io/t/typeerror-err-invalid-arg-type-when-trying-to-build-project-using-yarn/22649/22 "2022-03-22T14:06:56Z")

</div>

MS has some pretty good documentation on setting up and using WSL: [Windows Subsystem for Linux Documentation | Microsoft Docs](https://docs.microsoft.com/en-us/windows/wsl/) (you want WSL 2)

It’s basically just Linux, so just follow the Linux instructions. One thing to keep in mind is you usually want your stuff in the WSL file system or you might see weird permissions errors.

---

<div class="post-metadata">

**Author:** ![Mathias](https://discourse.roots.io/letter_avatar_proxy/v4/letter/m/bbe5ce/32.png) [@Mathias](https://discourse.roots.io/u/Mathias)\
**Post date:** [March 22, 2022, 2:20pm UTC](https://discourse.roots.io/t/typeerror-err-invalid-arg-type-when-trying-to-build-project-using-yarn/22649/23 "2022-03-22T14:20:32Z")

</div>

Great, i will play with that. Thanks.

This might be a stupid question, but are you going to update documentation to mention and guide that WSL is necessary?

Right now it’s almost just the same as before.

Edit: Local does not allow making new sites in \wsl.localhost\Ubuntu\root folder - What then

---

<div class="post-metadata">

**Author:** ![ben](https://discourse.roots.io/user_avatar/discourse.roots.io/ben/32/11377_2.png) [@ben](https://discourse.roots.io/u/ben)\
**Post date:** [March 22, 2022, 2:41pm UTC](https://discourse.roots.io/t/typeerror-err-invalid-arg-type-when-trying-to-build-project-using-yarn/22649/24 "2022-03-22T14:41:29Z")

</div>

Sorry about that. The docs have been updated now. [Sage 10.x: Installation | Roots Documentation](https://docs.roots.io/sage/10.x/installation/)

---

<div class="post-metadata">

**Author:** ![paul\_in](https://discourse.roots.io/user_avatar/discourse.roots.io/paul_in/32/10491_2.png) [@paul\_in](https://discourse.roots.io/u/paul_in)\
**Post date:** [April 14, 2022, 2:37pm UTC](https://discourse.roots.io/t/typeerror-err-invalid-arg-type-when-trying-to-build-project-using-yarn/22649/25 "2022-04-14T14:37:09Z")

</div>

Hello, I have the same problem. Did installing WLS solve the problem? I am not at all familiar with this environment and before going too far in the installations I would like to make sure that it serves a purpose. Thanks for your feedback

---

<div class="post-metadata">

**Author:** ![ben](https://discourse.roots.io/user_avatar/discourse.roots.io/ben/32/11377_2.png) [@ben](https://discourse.roots.io/u/ben)\
**Post date:** [April 14, 2022, 2:41pm UTC](https://discourse.roots.io/t/typeerror-err-invalid-arg-type-when-trying-to-build-project-using-yarn/22649/26 "2022-04-14T14:41:00Z")

</div>

You will **need** to use WSL in order to use Sage/Bud

[Previous page](https://discourse.roots.io/t/typeerror-err-invalid-arg-type-when-trying-to-build-project-using-yarn/22649.md?page=1)
