-
Notifications
You must be signed in to change notification settings - Fork 19
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
Lighthouse parameter passed as string instead of boolean #81
Comments
Hi @joshuagibeonm I think the problem is that yargs (that we use as a cli parser) don't know how to parse parameters that are not pre-defined. Can you try and use a congfiguration file? See https://www.sitespeed.io/documentation/sitespeed.io/configuration/#configuration-as-json Then we could add a special fix for the mobile/desktop in the plugin. |
It's possible to use configuration file. In fact, currently I use configuration file to configure lighthouse to run in desktop configuration. In my case, the problem is that there's some parameter that needs to be passed programmatically. So I can't fully use file to configure the lighthouse. But again, it's still possible to create multiple configuration to satisfy my requirement (my plan if there's no immediate fix for this issue). Here's my configuration file to run lighthouse in desktop mode:
|
@joshuagibeonm I've fixed to handle the |
@soulgalore Thank you for the fix, but I still got the same issue: verbose:
I tested master branch using this command:
|
I want to run lighthouse in desktop settings, but based on issue #68, looks like we can't use official documentation guide to run lighthouse in desktop settings. I tried in 16.10.3 but it produce same result as #68.
I tried to dig lighthouse configuration and find that we need to change formFactor and some other settings to run lighthouse in desktop settings. But when I tried to run this command:
I got following error:
I tried to pass verbose flag and this is the output:
The flag is passed as string instead of boolean.
I'm not sure if this is the root cause of the error because mobile parameter is passed as string and it's works. Maybe this is happened because in lighthouse, there's strict type validation
The text was updated successfully, but these errors were encountered: