Skip to content
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

Warning: Expected server HTML to contain a matching <script> in <body>. #29

Closed
jakexconniff opened this issue Mar 24, 2022 · 2 comments
Closed

Comments

@jakexconniff
Copy link

Upon clean install of the Indie Stack, I get this error message in console every time the page loads. It doesn't break anything as far as I can see, but figure it is worth highlighting.

Warning: Expected server HTML to contain a matching <script> in <body>.
    at script
    at LiveReload2 (http://localhost:3000/build/_shared/chunk-RKTPM4MS.js:3192:3)
    at body
    at html
    at App
    at RemixRoute (http://localhost:3000/build/_shared/chunk-RKTPM4MS.js:2627:3)
    at Routes2 (http://localhost:3000/build/_shared/chunk-RKTPM4MS.js:2610:7)
    at Router (http://localhost:3000/build/_shared/chunk-RKTPM4MS.js:304:15)
    at RemixCatchBoundary (http://localhost:3000/build/_shared/chunk-RKTPM4MS.js:1111:10)
    at RemixErrorBoundary (http://localhost:3000/build/_shared/chunk-RKTPM4MS.js:1036:5)
    at RemixEntry (http://localhost:3000/build/_shared/chunk-RKTPM4MS.js:2507:12)
    at RemixBrowser (http://localhost:3000/build/_shared/chunk-RKTPM4MS.js:3240:27)

Reproduction steps:

  1. npx create-remix@latest
  2. Name your app. Select Indie Stack when prompted. Hit Y to npm install
  3. npm run dev
  4. Visit localhost:3000 in browser and open console
  5. Error message should be there

If this is not as easily reproducable for anyone else, then perhaps it is an issue with my OS. But I have tried two separate repos (one, I modified the Indie stack app folder with contents of a previous app I am trying to port over to Indie Stack, and the other one was a clean install following steps above.)

Let me know if any other details would make this easier to dig into, or if I am the only one experiencing the issue.

@kentcdodds
Copy link
Member

I'm able to reproduce. I'll look into it. Thanks for reporting!

@kentcdodds
Copy link
Member

Just pushed a fix for this: f4cfbf1

Shouldn't be required. I've opened an issue for it: remix-run/remix#2485

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

No branches or pull requests

2 participants