Nuxt.js: Full-static generated site attempt to fetch payloads for non-generated page

Created on 19 Jun 2020  路  6Comments  路  Source: nuxt/nuxt.js

Version

v2.13.0

Reproduction link

https://codesandbox.io/s/silly-tesla-blj2f?file=/pages/_slug.vue

Steps to reproduce

  • Create a dynamic route eg. pages/_slug.vue
  • Make sure this page is not generated and /or crawlable
  • Navigate to the page: https://blj2f.sse.codesandbox.io/foo
  • A 404 console error is logged

What is expected ?

Nuxt doesn't attempt to fetch payloads that don't exist

What is actually happening?

404 errors are logged to the browser console

This bug report is available on Nuxt community (#c10802)
bug-report

Most helpful comment

@ziosa it doesn't show up in the console / terminal on codesandbox itself, but if you click the little button on the top-right to open it in a dedicated window, you should see a 404 for payload.js in your devtools / browser console.

All 6 comments

Hello @FreekVR ,

Are you sure that there is a bug?
For me seems to work properly:

image

@ziosa it doesn't show up in the console / terminal on codesandbox itself, but if you click the little button on the top-right to open it in a dedicated window, you should see a 404 for payload.js in your devtools / browser console.

Hi @FreekVR This issue is fixed with v2.13.3 (#7657) (related issue: #7648)

Forked sandbox:

Hi @pi0, it's not fixed, you can see 404 payload error when used with nuxt-i18n.

See this sandbox:

Thanks!

@pi0 @Atinux could you please reopen this issue or should I create a new issue? It's not fixed completely.

Thanks!

@divine indeed please create a reproduction, with a GitHub repo since it's hard to actually debug full static on CodeSandbox since it's dev mode only.

You can also use https://surge.sh to easily deploy once statically generated (it's free).

PS: please mention me when creating the issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bimohxh picture bimohxh  路  3Comments

lazycrazy picture lazycrazy  路  3Comments

bimohxh picture bimohxh  路  3Comments

surmon-china picture surmon-china  路  3Comments

msudgh picture msudgh  路  3Comments