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

generated 200.html references /200.html/_payload.js #14921

Closed
some-user123 opened this issue Sep 15, 2022 · 2 comments · Fixed by nuxt/framework#7553
Closed

generated 200.html references /200.html/_payload.js #14921

some-user123 opened this issue Sep 15, 2022 · 2 comments · Fixed by nuxt/framework#7553

Comments

@some-user123
Copy link

Environment


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.10
  • Nitro Version: 0.5.3
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

  • Run nuxt generate on nuxt3 project.

Describe the bug

It's great to have the fallback file 200.html now! 💖

However, the fallback file 200.html references a /200.html/_payload.js which does not exist.

<!DOCTYPE html>
<html >
<head><link rel="modulepreload" href="/200.html/_payload.js"><link rel="modulepreload" as="script" crossorigin...

This causes this error in the console as the 200.html is served as a fallback 😁

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

Not sure if this is the reason, the fallback is not working properly, but let's take one step at a time 😉

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

This should be resolved in the edge channel via nuxt/framework#7535.

@some-user123
Copy link
Author

some-user123 commented Sep 15, 2022

On the edge channel, a file named "undefined" is referenced:

<!DOCTYPE html>
<html >
<head><link rel="modulepreload" href="undefined"><link ...

It's still the same error in the console as also "undefined" falls back to "200.html" 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants