-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[BUG] Device emulation not working with CLI #6431
Comments
I tried to reproduce it with Windows with Powershell and cmd.exe and it worked for me as expected in both cases. (I had Node.js 16 but this should not make a big difference there.) Are you using some special terminal e.g.? |
I can repro on one of our windows machines; looking into it! |
So turns out this is an NPX issue on Windows:
This, however, is fixed in NPM v7, so that's why @mxschmitt wasn't able to reproduce. @transplatin: the official "workaround" for this would be to install NPM v7: $ npm i -g npm@v7 Worked for me! So closing this. |
Yes, updating to npm@7 solves the issue. :) |
Device emulation not working with CLI
Context:
System:
Binaries:
npmPackages:
Code Snippet
I tried to emulate iPhone 11 using CLI but it is not working.
Error
'''
Device descriptor not found: 'iPhone', available devices are:
"Blackberry PlayBook"
"Blackberry PlayBook landscape"
"BlackBerry Z30"
"BlackBerry Z30 landscape"
"Galaxy Note 3"
"Galaxy Note 3 landscape"
"Galaxy Note II"
"Galaxy Note II landscape"
"Galaxy S III"
and so on...
Possible Issue
It seems like it is only accepting the first word of every specified device rather than accepting it as "iPhone 11", it is accepting it as "iPhone".
The text was updated successfully, but these errors were encountered: