GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28.42k stars 9.39k forks source link

missing references files from tsconfig.json #16214

Closed mjalav closed 1 month ago

mjalav commented 1 month ago

FAQ

URL

locally

What happened?

I did install lighthouse with npm install lighthouse and I see following references was not find in tsconfig.json

not found. The file is in the program because: Part of 'files' list in tsconfig.json

Also in references seems like we don't have treemap folder after installing packages. got an error //treemap' not found. "references": [ {"path": "./types/lhr/"}, {"path": "./report/"}, {"path": "./report/generator/"}, {"path": "./shared/"}, {"path": "./treemap/"}, ],

What did you expect?

expected references manage properly in installed package.

What have you tried?

I did try to download lighthouse project from github and overwrite missed file to my project. That resolved the issue.

How were you running Lighthouse?

node

Lighthouse Version

12.2.1

Chrome Version

129.0.6668.90

Node Version

v22.6.0

OS

Windows

Relevant log output

No response

adamraine commented 1 month ago

How exactly are you using the Lighthouse package. Can you provide some specific repro steps?

mjalav commented 1 month ago

@adamraine you can create new folder in your computer and do npm i typescript --save-dev npm install lighthouse

Then go to node_modules\lighthouse\tsconfig.json you can see in line 11 there is ./treemap/ folder which is not exist. same for other files that I mentioned earlier. Screenshot 2024-10-11 102006

adamraine commented 1 month ago

We don't publish those files in the NPM package, so a missing file in a code editor seems expected. Is this causing any other issues?

mjalav commented 1 month ago

@adamraine no it doesn't cause any other issue.

adamraine commented 1 month ago

I don't know if there is an easy fix, and I would prefer not to restructure or typescript setup unless there is a visible issue so I'm going to close as WAI.