Skip to content

fix(app): resolve the bundled trace viewer from playwright-core's install path - #422

Merged
PhenX merged 1 commit into
PiwiTests:mainfrom
NicolaiHorlacher:fix/trace-viewer-assets
Aug 21, 2026
Merged

PhenX merged 1 commit into
PiwiTests:mainfrom
NicolaiHorlacher:fix/trace-viewer-assets

Conversation

@NicolaiHorlacher

Copy link
Copy Markdown
Contributor

I have the second external PR in this repo for you.
This is the other thing I found while testing piwi. The rest seems to be working like I expected.
Also disclaimer again: Claude did the code again. And I validated the changes only on MacOS. I'm not Nuxt expert, so I can't say if its the right fix for the issue. Thats on you to decide.

What & why

Fixes: #421

How was it tested?

Using npm test

Checklist

  • PR title follows Conventional Commits (type(scope): subject)
  • Tests added/updated for behavior changes
  • Docs updated if user-facing (apps/docs/, README, or reporter README)

…tall path

The publicAssets dir for /trace-viewer/ was resolved relative to the app
directory ('../node_modules'), a path that stopped existing when the app
moved into the apps/ workspace — playwright-core is hoisted to the repo
root. Nitro silently skips a missing assets dir, so every build since
shipped without the viewer and 'View trace' opened a 404 page. The dir
is now located via module resolution, which is layout-independent, and
a test asserts the viewer page and its service worker are served.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@NicolaiHorlacher NicolaiHorlacher changed the title fix (app): resolve the bundled trace viewer from playwright-core's install path fix(app): resolve the bundled trace viewer from playwright-core's install path Aug 21, 2026
@PhenX
PhenX merged commit b07a1b4 into PiwiTests:main Aug 21, 2026
26 of 27 checks passed
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

Successfully merging this pull request may close these issues.

bug: "View trace" opens a 404 page - bundled trace viewer is missing

2 participants