pwa-studio: [bug]: yarn create @magento/pwa stuck at first question on Windows

Describe the bug When i am trying to use the cli command yarn create @magento/pwa its is stuck in the first question and giving error for almost any string address i provide Invalid directory path; contains illegal characters.

To reproduce Steps to reproduce the behavior:

  1. Go to windows PC install all dependencies mentioned latest python, node , yarn
  2. Now to setup this project move a sample directory i tried D:\Projects
  3. Run yarn create @magento/pwa
  4. After Installing create-pwa 1.0 with binaries it is stuck at first question for any thing i type as directory
  5. I tries test , …/test , anything it is keep on giving the error Invalid directory path; contains illegal characters

Expected behavior Should run to next question as it is a valid path.Something other is happening

Screenshots Screenshot (28) Screenshot (29) Screenshot (30)

  • Device PC
  • OS Windows 10
  • NPM version :6.4.1
  • yarn version :1.16.0
  • Node Version : 10.15.3 -Python : 3.8.2

Please let us know what packages this bug is in regards to:

  • create-pwa

Guidance

Copied from my comment below:

Thanks for the input @jissereitsma! We would welcome a contribution (from anyone 😄) that:

Doing the above will at least remedy the issue which @jissereitsma noted may prevent at least this line from executing in Windows. That said, I’m not sure if the app will function even if you get it to scaffold. Still, we should avoid non-maintained dependencies so I think this is a good idea.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 5
  • Comments: 20 (8 by maintainers)

Most upvoted comments

As per https://magento.github.io/pwa-studio/frequently-asked-questions/ we’re not supporting Windows development necessarily, but if someone from community wants to do this work (as detailed by my above comment) we’re open to accepting it.

Until then this will sit in “ready for dev” or eventually be closed as stale.

Closing this as a bug per Tommy’s comment, Window’s support currently doesn’t exist for scaffolding.

To further document this issue, it seems that this bug is related to the following issue: https://github.com/jonschlinkert/is-invalid-path/issues/2 A PR to fix this has been created as well https://github.com/jonschlinkert/is-invalid-path/pull/3 but it seems as if the creator is no longer maintaining this package.

My recommendation would be to abandon the usage of this package alltogether and simply copy the lines of the original package (plus the PR) into the codebase here. Or fork the original repo.

@fahadjabbar8 - Our docker setup is in the monorepo, and is not distributed or supported in a scaffolded app (yarn create @magento/pwa). The docker files are hard-coded to monorepo paths, but could easily be used as a template on how to roll your own.

I would suggest using the Linux sub-system if available, otherwise Docker would be your next best bet. We’ll still review this in our grooming, but Windows support has been low on the priority list. If we helped identify areas that needed to be made Windows compatible, would you be interested in contributing those changes to the repo?