nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

When opening a page of nuxt3 in a qq app window on an apple phone, it reports 500 error code

Open mumuchongya opened this issue 1 year ago • 4 comments

Environment

Reproduction

uconf.com

Describe the bug

500 When opening a page of nuxt3 in a qq app window on an apple phone, it reports 500 error code

Additional context

No response

Logs

No response

mumuchongya avatar Feb 26 '24 05:02 mumuchongya

@mumuchongya Although this is not a recommended practice, you can set up in package.json

"resolutions": {
  "ofetch": "npm:[email protected]"
},
"overrides": {
  "ofetch": "npm:[email protected]"
}

After that, re-run npm install and package it again. This should temporarily solve your problem.

markthree avatar Feb 26 '24 08:02 markthree

@mumuchongya Although this is not a recommended practice, you can set up in package.json

"resolutions": {
  "ofetch": "npm:[email protected]"
},
"overrides": {
  "ofetch": "npm:[email protected]"
}

After that, re-run npm install and package it again. This should temporarily solve your problem.

Thank you! This is the best solution I've used so far!

mumuchongya avatar Feb 27 '24 01:02 mumuchongya

If someone doesn't have high stability requirements, they can use this module → markthree/nuxt-fix-ofetch

markthree avatar Apr 06 '24 07:04 markthree

https://github.com/unjs/ofetch/pull/366

YunYouJun avatar Apr 28 '24 11:04 YunYouJun

I also hope the author can solve this problem of QQ browser

xiaoruo-lin avatar Jun 14 '24 08:06 xiaoruo-lin

This should be resolved in the latest v3.12.1 via https://github.com/nuxt/nuxt/pull/27441. Let me know if not, and I will happily reopen. 🙏

danielroe avatar Jun 14 '24 08:06 danielroe

此问题应在最新的 v3.12.1 中通过#27441得到解决。如果没有解决,请告诉我,我会很乐意重新打开。🙏

Wow, I'm so surprised, thanks for your reply, I'm even more happy that you are going to deal with this issue, thank you

xiaoruo-lin avatar Jun 14 '24 08:06 xiaoruo-lin