Skip to content
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

Facing problem in running the project #2

Closed
devyani735 opened this issue Jun 17, 2020 · 19 comments
Closed

Facing problem in running the project #2

devyani735 opened this issue Jun 17, 2020 · 19 comments

Comments

@devyani735
Copy link

devyani735 commented Jun 17, 2020

Hi,

When I m running npm run test, it showing the error 'Syntax error: Unexpected token import'.
For more details, attached screenshot.

Can you please help in this.
ErrorInProject

Thanks in advance.
Devyani

@gowthamraj198
Copy link
Owner

gowthamraj198 commented Jun 17, 2020

Have you installed mochaawesome?
npm i -g mochawesome
try running "npm run test"

@devyani735
Copy link
Author

devyani735 commented Jun 18, 2020 via email

@gowthamraj198
Copy link
Owner

share the screenshot and error in detail

@devyani735
Copy link
Author

URLUndefined

@gowthamraj198
Copy link
Owner

this one is not related to my repo. you are trying to run lighthouse cli. check lighthouse repo - https://github.com/GoogleChrome/lighthouse

@devyani735
Copy link
Author

Sorry for wrong screenshot, please find the attached screenshot for npm run test.
ErrorForURL

Thanks for your quick reply.

@gowthamraj198
Copy link
Owner

What is your node version? lighthouse requires node version >10.
GoogleChrome/lighthouse#8909

@devyani735
Copy link
Author

npm version is 5.6.0.

@gowthamraj198
Copy link
Owner

check the node version not npm. node version should be >10.

@devyani735
Copy link
Author

Hey @gowthamraj198 ,

It's working now Thanks :) , but I m checking manual as well there is little bit difference in automation and manual report.

Please verify the attached screenshot
AutomationReport
ManualReport

@gowthamraj198
Copy link
Owner

when you run any analysis, run more than once and take the average. this difference is okay.

@devyani735
Copy link
Author

Hi @gowthamraj198 ,

Command line we got the number like accessibility 59, can we print the accessibility data as well same as manual ?
AutomationREportwebsite
ManualReportDetail

For more understanding I attached screenshots.

Thanks in advance.
Devyani

@gowthamraj198
Copy link
Owner

as i already mentioned, the number may not same everytime. run more than once and consider the average

@devyani735
Copy link
Author

Hi @gowthamraj198 ,

I am not talking about numbers, In manual we can click on numbers and it's display the description.

Can we do it in automation script.

Thanks!

@gowthamraj198
Copy link
Owner

reports should be generated in reports folder. you can do this in report

@devyani735
Copy link
Author

Yes I got that report as well. We are doing for one URL, Can we do it for whole website URL through automation.

@gowthamraj198
Copy link
Owner

check the code. it reads the url from a data file. You can do it by changing the data file

@devyani735
Copy link
Author

Thank you so much for your time, I will do and let you know for further help.

Appreciated for your reply. @gowthamraj198

@gowthamraj198
Copy link
Owner

closing this issue as the issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants