image icon indicating copy to clipboard operation
image copied to clipboard

Wrong arguments in serverMiddleware function

Open Eddie344 opened this issue 2 years ago • 4 comments

I am migrating website to nuxt bridge and getting this errors on page load: image

I found the reason: image Function IPXMiddleware receive not this arguments, but H3Event object, where structure is event.node.res

My deps:

{
  "nuxt": "^2.16.3",
  "@nuxt/bridge": "npm:@nuxt/bridge-edge",
  "@nuxt/image": "^0.7.1",
}

What can I do to fix this issue?

Eddie344 avatar Jun 01 '23 12:06 Eddie344

@danielroe

Eddie344 avatar Jun 02 '23 06:06 Eddie344

Have you found a solution? I have exactly the same errors.

vDk3 avatar Dec 05 '23 09:12 vDk3

Have you found a solution? I have exactly the same errors.

No, I gave up migration then. I want to try again soon. I will write if I can fix it

Eddie344 avatar Jan 07 '24 07:01 Eddie344