Description
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:
- Go to windows PC install all dependencies mentioned latest python, node , yarn
- Now to setup this project move a sample directory i tried D:\Projects
- Run yarn create @magento/pwa
- After Installing create-pwa 1.0 with binaries it is stuck at first question for any thing i type as directory
- 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
- 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:
- Copies https://github.com/jonschlinkert/is-invalid-path/blob/master/index.js to our repo as a utility within
create-pwa/util
. - Removes the
is-invalid-path
dependency from the create-pwa/package.json. - Replaces the import with the copied local utility.
- Adds tests (perhaps copy and improve upon these).
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.