-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering issues for WebExtensions/manifest.json on http://localhost:3000 #4654
Comments
This is not an mdn issue. its that the server at 5000 cant locate the page resources. |
@gumbol Is this what you need: |
It seems the server is sending a different mime type to the request one and the browser doesnt know what to do with the received data. |
does it work with other pages? |
As mentioned it is problem for pages in the en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json path (not that I have exhaustively checked other paths outside the add-ons pages) |
Hey @rebloor - I have tested this using both port If so, which operating system are you on and which browser are you using? Thanks. |
Thanks @schalkneethling I'm still seeing the issue in Firefox 96.0 and Firefox developer 97.0b2 running on an Apple silicon MacBook with macOS 12.0 (21A344). (I reported the problem from an iMac with Intel silicon.) |
I essentially have the exact same set-up. Could you grab the latest from |
@schalkneethling sadly, that made no difference. Some more information, when I load pages from the
|
@rebloor try edit the mime type in /static/css/main.cd55b6e0.chunk.css |
@gumbol I can't see that the file includes a specification of mime type. The file appears to be a run time copy of yari/client/public/index.html: |
@rebloor Thank you for the additional information. This is an odd one. |
Thanks @schalkneethling |
This was wrong. We actually implemented our own dev server. Will investigate this issue. |
I'm running into this as well. Maybe the ".json" in the slug is problematic here? Mozilla/Add-ons/WebExtensions/manifest.json has quite a few subpages, so changing that is a bit annoying on the content side. Would be cool to fix the dev environment (and probably also disallow future slugs to have ".json") https://github.com/mdn/yari/blob/main/client/src/setupProxy.js#L18C3-L18C31 |
For everyone else who runs into this issue, @rebloor found out that using http://localhost:5042/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/ (note the port 5042 and not port 3000) is a workaround for this problem. |
Still an issue: #11530 (comment) |
While pages in the en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json path render as expected on http://localhost:5000 they are not formatting correctly on http://localhost:3000.
The text was updated successfully, but these errors were encountered: