Module “stream“ has been externalized for browser compatibility. Cannot access “stream.Stream“ in

antd组件在表格上点击按钮跳转时报错

chunk-AUZ3RYOM.js?v=71ca0ce9:18  Module "stream" has been externalized for browser compatibility. Cannot access "stream.Stream" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.


get	@	browser-external:stream:9
(匿名)	@	sax.js:163
node_modules/.pnpm/[email protected]/node_modules/sax/lib/sax.js	@	sax.js:1565
__require2	@	chunk-AUZ3RYOM.js?v=71ca0ce9:18
node_modules/.pnpm/[email protected]/node_modules/xml-js/lib/xml2js.js	@	xml2js.js:1
__require2	@	chunk-AUZ3RYOM.js?v=71ca0ce9:18
node_modules/.pnpm/[email protected]/node_modules/xml-js/lib/index.js	@	index.js:3
__require2	@	chunk-AUZ3RYOM.js?v=71ca0ce9:18
(匿名)
[Vue Router warn]: uncaught error during route navigation:

warn	@	vue-router.mjs:35
triggerError	@	vue-router.mjs:3470
(匿名)	@	vue-router.mjs:3186
Promise.catch(异步)		
pushWithRedirect	@	vue-router.mjs:3180
push	@	vue-router.mjs:3112
go	@	usePage.ts:28
onClick	@	BInstanceList.vue:182
callWithErrorHandling	@	runtime-core.esm-bundler.js:158
callWithAsyncErrorHandling	@	runtime-core.esm-bundler.js:166
emit	@	runtime-core.esm-bundler.js:664
(匿名)	@	runtime-core.esm-bundler.js:7422
handleClick2	@	button.js:103
callWithErrorHandling	@	runtime-core.esm-bundler.js:158
callWithAsyncErrorHandling	@	runtime-core.esm-bundler.js:166
invoker	@	runtime-dom.esm-bundler.js:278
TypeError: Cannot read properties of undefined (reading 'prototype')
    at sax.js:222:46
    at node_modules/.pnpm/[email protected]/node_modules/sax/lib/sax.js (sax.js:1565:1)
    at __require2 (chunk-AUZ3RYOM.js?v=71ca0ce9:18:50)
    at node_modules/.pnpm/[email protected]/node_modules/xml-js/lib/xml2js.js (xml2js.js:1:11)
    at __require2 (chunk-AUZ3RYOM.js?v=71ca0ce9:18:50)
    at node_modules/.pnpm/[email protected]/node_modules/xml-js/lib/index.js (index.js:3:14)
    at __require2 (chunk-AUZ3RYOM.js?v=71ca0ce9:18:50)
    at xmind.js:2:24

triggerError	@	vue-router.mjs:3472
(匿名)	@	vue-router.mjs:3186
Promise.catch(异步)		
pushWithRedirect	@	vue-router.mjs:3180
push	@	vue-router.mjs:3112
go	@	usePage.ts:28
onClick	@	BInstanceList.vue:182
callWithErrorHandling	@	runtime-core.esm-bundler.js:158
callWithAsyncErrorHandling	@	runtime-core.esm-bundler.js:166
emit	@	runtime-core.esm-bundler.js:664
(匿名)	@	runtime-core.esm-bundler.js:7422
handleClick2	@	button.js:103
callWithErrorHandling	@	runtime-core.esm-bundler.js:158
callWithAsyncErrorHandling	@	runtime-core.esm-bundler.js:166
invoker	@	runtime-dom.esm-bundler.js:278

你可能感兴趣的:(前端,stream,vite,antd,xmind,sax.js)