You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
老师,这段代码。我用Vitesse就没问题,但是使用咱们的报错,错误提示是:
`chunk-TBCSS62C.js?v=caf2dfd6:9 Module "util" has been externalized for browser compatibility. Cannot access "util.inspect" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
get @ browser-external:util:9
(匿名) @ loupe.js:682
(匿名) @ loupe.js:2
node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js @ loupe.js:5
__require @ chunk-TBCSS62C.js?v=caf2dfd6:9
(匿名) @ index.js:7
browser-external:util:9 Module "util" has been externalized for browser compatibility. Cannot access "util.inspect" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
get @ browser-external:util:9
(匿名) @ index.js:125
__x00__virtual:modules:19 [Vue Router warn]: Unexpected error when starting the router: Error: Vitest failed to access its internal state.
One of the following is possible:
"vitest" is imported directly without running "vitest" command
"vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
信息
nodejs 版本
18.15.0
(推荐使用
v18
以上)包管理器及其版本
pnpm 8.13.2
(请使用
pnpm
)系统
win11
(该项目开发环境系统为
win11
)bug
描述
老师,这段代码。我用
Vitesse
就没问题,但是使用咱们的报错,错误提示是:`chunk-TBCSS62C.js?v=caf2dfd6:9 Module "util" has been externalized for browser compatibility. Cannot access "util.inspect" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
get @ browser-external:util:9
(匿名) @ loupe.js:682
(匿名) @ loupe.js:2
node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js @ loupe.js:5
__require @ chunk-TBCSS62C.js?v=caf2dfd6:9
(匿名) @ index.js:7
browser-external:util:9 Module "util" has been externalized for browser compatibility. Cannot access "util.inspect" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
get @ browser-external:util:9
(匿名) @ index.js:125
__x00__virtual:modules:19 [Vue Router warn]: Unexpected error when starting the router: Error: Vitest failed to access its internal state.
One of the following is possible:
"vitest" is imported directly without running "vitest" command
"vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
at createVitest (vendor-vi.23b98fa1.js:3129:11)
at vendor-vi.23b98fa1.js:3321:16
warn @ vue-router.mjs:35
(匿名) @ vue-router.mjs:3553
Promise.catch(异步)
install @ vue-router.mjs:3551
use @ runtime-core.esm-bundler.js:3752
(匿名) @ __x00__virtual:modules:19
useModules @ __x00__virtual:modules:6
(匿名) @ main.ts:13
setTimeout(异步)
(匿名) @ __uno.css:20
(匿名) @ __uno.css:20
Show 4 more frames`
预期结果
TODO
最小测试仓库
TODO
The text was updated successfully, but these errors were encountered: