Yari build possibly broken
Closed this issue · 4 comments
Summary
I updated my local environment.
I can get to http://localhost:5042/en-US/docs (which redirects to http://localhost:5042/en-US/docs/Web)
but not to http://localhost:5042 or http://localhost:5042/en-US or http://localhost:5042/en-US/play/ (live examples work, but clicking "play" to open in new tab gets the error)
The error message reads:
Error: ENOENT: no such file or directory, stat 'myPath/content/node_modules/@mdn/yari/client/build/en-us/_spas/404.html'
It was working on 2.56, but the 2.57 build seems to be the issue.
URL
Reproduction steps
- update all the repose
- yarn install; yarn start
- go to the local environment's MDN home page.
Expected behavior
the home page
Actual behavior
an error:
Error: ENOENT: no such file or directory
Device
Desktop
Browser
Edge
Browser version
Stable
Operating system
iOS
Screenshot
Anything else?
No response
Validations
- I have read the Community Participation Guidelines.
- I have verified that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- I have checked that this is a concrete bug. For Q&A open a GitHub Discussion.
Technically, we're missing a yarn render:html
when packaging yari, but originally it seems yarn tool spas
no longer building HTML files is a breaking change we missed. We'll provide a fix in the next 24 hours.
@estelle The fix is now available in @mdn/yari
2.58.0, and I expect Dependabot to open a PR on mdn/content in the next hours.
With mdn/content#34426 being merged, the fix has now landed in the content repository.