Skip to content

docs(example): Nuxt Data Fetch #207

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexwpengine
Copy link

@alexwpengine alexwpengine commented May 22, 2025

Description

WIP

Related Issue

Dependant PRs

Type of Change

  • ✅ Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactoring (no functional changes)
  • 📄 Example update (no functional changes)
  • 📝 Documentation update
  • 🔍 Performance improvement
  • 🧪 Test update

How Has This Been Tested?

Screenshots

Checklist

  • I have read the CONTRIBUTING document
  • My code follows the project's coding standards
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • Any dependent changes have been highlighted, merged or published

@alexwpengine alexwpengine requested a review from a team as a code owner May 22, 2025 15:18
@ahuseyn ahuseyn changed the title [Example] Nuxt Data Fetch docs(example): Nuxt Data Fetch May 23, 2025
@ahuseyn
Copy link
Member

ahuseyn commented May 27, 2025

@alexwpengine I had an issue running the example.
These are the steps I've taken:

  1. npm run example:setup
  2. npm run example:start

Here is the result:
Screenshot 2025-05-27 at 15 13 36

 
ℹ Error: [GET] "http://127.0.0.1:63028/__nuxt_vite_node__/manifest": 500 Server Error

 ⁃ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
 ⁃ at async $fetchRaw2 (node_modules/ofetch/dist/shared/ofetch.03887fc3.mjs:311:14)

   306 ┃          await callHooks(
   307 ┃            context,
   308 ┃            context.options.onResponseError
   309 ┃          );
   310 ┃        }
 ❯ 311 ┃        return await onError(context);
   312 ┃      }
   313 ┃      return context.response;
   314 ┃    };
   315 ┃    const $fetch = async function $fetch2(request, options) {
   316 ┃      const r = await $fetchRaw(request, options);

 ⁃ at async $fetch2 (node_modules/ofetch/dist/shared/ofetch.03887fc3.mjs:316:15)
 ⁃ at async <anonymous> (node_modules/nuxt/dist/core/runtime/nitro/utils/renderer/build-files.js:14:20)
 ⁃ at async Object.render (node_modules/nuxt/dist/core/runtime/nitro/handlers/renderer.js:69:20)
 ⁃ at async Object.handler (node_modules/nitropack/dist/runtime/internal/renderer.mjs:25:22)
 ⁃ (async file://node_modules/h3/dist/index.mjs:2003:19)
 ⁃ at async Object.callAsync (node_modules/unctx/dist/index.mjs:72:16)
 ⁃ at async toNodeHandle (node_modules/h3/dist/index.mjs:2295:7)
 ⁃ at async b (node_modules/node-mock-http/dist/index.mjs:1:6808)

[CAUSE]
FetchError {
  stack: '[GET] "http://127.0.0.1:63028/__nuxt_vite_node__/manifest": 500 Server Error\n' +
  '    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n' +
  'at async $fetchRaw2 (./node_modules/ofetch/dist/shared/ofetch.03887fc3.mjs:311:14)\n' +
  'at async $fetch2 (./node_modules/ofetch/dist/shared/ofetch.03887fc3.mjs:316:15)\n' +
  'at async <anonymous> (./node_modules/nuxt/dist/core/runtime/nitro/utils/renderer/build-files.js:14:20)\n' +
  'at async Object.render (./node_modules/nuxt/dist/core/runtime/nitro/handlers/renderer.js:69:20)\n' +
  'at async Object.handler (./node_modules/nitropack/dist/runtime/'... 617 more characters,
  message: '[GET] "http://127.0.0.1:63028/__nuxt_vite_node__/manifest": 500 
  Server Error',
  name: 'FetchError',
  request: [Getter]
  options: [Getter]
  response: [Getter]
  data: [Getter]
  status: [Getter]
  statusCode: [Getter]
  statusText: [Getter]
  statusMessage: [Getter]
}

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

Successfully merging this pull request may close these issues.

2 participants