NuxtN
Nuxt3y ago
Rowin

[nuxt] Cannot load payload /_payload.json

I just created a brand new Nuxt project using npx nuxi@latest init. I set up routing by adding <NuxtPage /> to app.vue and creating pages/index.vue. Then I made a static export using npm run generate and finally I serve it using npx serve .output/public.

I am getting the following error in my browser's console:
[nuxt] Cannot load payload  /hello/_payload.json SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Why is Nuxt is trying to load a non-existent JSON file? Did I find a bug already? 😬
Was this page helpful?