You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
React App Template: HTML <head> tags in <body> #556
When I create a new React App, all the <head> tags get duplicated in the <body>.
The file is correct when received by the browser (see network tab in chrome devtools), but the browser puts <head> tags in the <body> when interpreted (that or a CSB related script is causing this effect).
It doesn't really prevent me to use codesandbox but it has a few drawbacks, for example if I put a <link> tag to an external CSS and i use webpack css loader into the app, the external CSS will take priority on imported CSS because the <link> tab gets copied into the <body> (and then get positioned in the DOM after the imported CSS that webpack puts into the <head>).
Browser: Chrome up-to-date (v63)
It also happens when i import a project into codesandbox and that problem didn't occur on my local environment.
Tell me if you need more details to help you tackle this issue.
@lbogdan Yes the issue is still here, if you try to create a new React app, open the preview in a new window and inspect the DOM with Chrome Dev Tools for exemple, and you can see markup in .
Btw great quality tool overall i'm using it very often and i'm always enjoying it, the live session feature is amazing. It has become my tool of choice for prototyping, demoing, starting new apps. Thanks!
Activity
[-]React App Teamplate: HTML <head> tags in <body>[/-][+]React App Template: HTML <head> tags in <body>[/+]CompuIves commentedon Feb 19, 2018
Good one! I know how to fix this one, but need to find a way to fix this without breaking local dev environment for the contributors.
lbogdan commentedon May 3, 2018
@bbeaumatin Are you still having this issue? I can't seem to reproduce it.
@CompuIves Was this fixed?
CompuIves commentedon May 3, 2018
This (#702) will fix it, I can finish that PR soonish.
bbeaumatin commentedon May 4, 2018
@lbogdan Yes the issue is still here, if you try to create a new React app, open the preview in a new window and inspect the DOM with Chrome Dev Tools for exemple, and you can see markup in .
@CompuIves Thanks for solving this soonish 👍
Btw great quality tool overall i'm using it very often and i'm always enjoying it, the live session feature is amazing. It has become my tool of choice for prototyping, demoing, starting new apps. Thanks!
the0neWhoKnocks commentedon May 12, 2018
@CompuIves Any traction on your PR? Looks like the last commit was Apr 7, but there are
test-integrationserrors on the PR.@lbogdan It's definitely still an issue. Currently I'm adding ids to link tags so I can clean them out of the body.
CompuIves commentedon May 20, 2018
Fixed in master, will be deployed either this evening or tomorrow morning.