Skip to content
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

nuxt3js 不能使用useRequest功能 #232

Open
7 tasks done
a524313390 opened this issue Oct 14, 2024 · 3 comments
Open
7 tasks done

nuxt3js 不能使用useRequest功能 #232

a524313390 opened this issue Oct 14, 2024 · 3 comments
Labels
pending triage issue: pending triage

Comments

@a524313390
Copy link

Describe the bug

nuxtjs使用useRequest在打包的时候,useRequest使用了防抖和节流,导致服务端打包操作,怎么解决?我看说是支持ssr的,麻烦告诉下要怎么在nuxt3中使用

Steps to reproduce

No response

System Info

nuxt3.13.2

Used Package Manager

npm

Validations

@a524313390 a524313390 added the pending triage issue: pending triage label Oct 14, 2024
@XiaoDaiGua-Ray
Copy link
Contributor

你好麻烦提供一个详细的截图描述或者代码描述呢?

@NelsonYong
Copy link
Contributor

NelsonYong commented Oct 19, 2024

@a524313390 可以提供相关截图以及代码信息吗?我使用了防抖节流,且在使用版本为 3.12.2 的 nuxt 进行打包操作时没有报错。
image

@fy0
Copy link

fy0 commented Nov 22, 2024

@a524313390 可以提供相关截图以及代码信息吗?我使用了防抖节流,且在使用版本为 3.12.2 的 nuxt 进行打包操作时没有报错。 image

我也遇到了,目前是3.14版本,打包时不会报错,非ssr访问也不会报错(也就是通过导航点进去)
但是如果直接访问那个页面就会报错:
500 useRequest is not a function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending triage issue: pending triage
Projects
None yet
Development

No branches or pull requests

4 participants