web-nuxt出错,循环登录


在模块下载完web-nuxt后,没有发布结束安装。再在cmd窗口下了命令pnpm install和pnpm dev -o,能够进入http://localhost:3000,但在登录窗口循环。警告信息好象是数据没连上。

3个回答默认排序 投票数排序
raoyk
raoyk
这家伙很懒,什么也没写~
1月前

在设置好.env.development文件中的VITE_API_BASE_URL = 'http://0.0.0.0:8000'后,使用pnpm build重新编译(重新编译web端正常),出现下列错误:(node:12668) [DEP0155] DeprecationWarning: Use of deprecated trailing slash pattern mapping "./" in the "exports" field module resolution of the package at E:\Code\buildadmin-v2\web-nuxt\node_modules@vue\shared\package.json imported from E:\Code\buildadmin-v2\web-nuxt\node_modules. Mapping specifiers ending in "/" is no longer supported.
(Use node --trace-deprecation ... to show where the warning was created)
(node:12668) [DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.mjs" for module request ".//index.mjs" matched to "./" in the "exports" field module resolution of the package at E:\Code\buildadmin-v2\web-nuxt\node_modules@vue\shared\package.json imported from E:\Code\buildadmin-v2\web-nuxt\node_modules.
(node:12668) [DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.cjs" for module request ".//index.cjs" matched to "./
" in the "exports" field module resolution of the package at E:\Code\buildadmin-v2\web-nuxt\node_modules@vue\shared\package.json imported from E:\Code\buildadmin-v2\web-nuxt\node_modules.
(node:12668) [DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.js" for module request ".//index.js" matched to "./*" in the "exports" field module resolution of the package at E:\Code\buildadmin-v2\web-nuxt\node_modules@vue\shared\package.json imported from E:\Code\buildadmin-v2\web-nuxt\node_modules.

raoyk
raoyk
这家伙很懒,什么也没写~
1月前

删除模块,删除模块运行目录。重启电脑,重装模块,修改.env.development文件中的VITE_API_BASE_URL = 'http://0.0.0.0:8000'后,在cmd窗口执行pnpm install和pnpm dev -o,在Chrome中打开http://localhost:3000,首页显示正常,进行登录,验证页无显示:
看来web-nuxt还是不完善。

YANG001
YANG001
这家伙很懒,什么也没写~
1月前

感谢返馈,我们已经限定了nuxt工程的依赖版本,但由于依赖链中的某个网络请求相关依赖更新造成了此问题;

现已修复,请更新至代码仓库的最新版本~

请先登录
0
1
0
3