Skip to content

Conversation

@paulirish
Copy link
Member

Running yarn open-devtools locally, i get an error:

../../front_end/panels/lighthouse/LighthousePanel.ts(266,38): error TS2339: Property 'DOM' does not exist on type 'typeof import("lighthouse/.tmp/chromium-web-tests/devtools/devtools-frontend/out/Default/gen/front_end/third_party/lighthouse/report/report")'.

In #12933 we added a fix for this, but the sed command was invalid.
And since the script didnt have a euo pipefail the script continued despite this happening:

+ npx tsc --allowJs --declaration --emitDeclarationOnly dist/report/bundle.esm.js
+ sed -i '' 's/export type DOM = any;//' dist/report/bundle.esm.d.ts
sed: can't read s/export type DOM = any;//: No such file or directory

(found all this while debugging some CI devtools failures in #13123)

@paulirish paulirish requested a review from a team as a code owner October 21, 2021 17:25
@paulirish paulirish requested review from adamraine and removed request for a team October 21, 2021 17:25
@google-cla google-cla bot added the cla: yes label Oct 21, 2021
@paulirish
Copy link
Member Author

thanks for looking. it appears this PR is still broken (in two ways). uno momento. :)

@connorjclark connorjclark changed the title clients(devtools): fix tsc workaround sed typo misc(build): use cross platform sed for devtools script Oct 21, 2021
@paulirish paulirish merged commit cbc9282 into master Oct 21, 2021
@paulirish paulirish deleted the tscdom branch October 21, 2021 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants