Closed mjalav closed 1 month ago
How exactly are you using the Lighthouse package. Can you provide some specific repro steps?
@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.
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?
@adamraine no it doesn't cause any other issue.
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.
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