7
重现链接
因为没有github仓库,因此使用百度云传递本地代码 https://pan.baidu.com/s/1ep18nTk3wz-hZGy2fMetnw?pwd=9utp
Vant 版本4.0.11
描述一下你遇到的问题。引入vant4组件,启动项目之后,页面报错
Cannot read properties of null (reading 'proxy')
at useRoute (use-route.mjs:22:33)
at setup (Cell.mjs:35:19)
at callWithErrorHandling (runtime-core.esm-bundler.js:155:22)
at setupStatefulComponent (runtime-core.esm-bundler.js:7165:29)
at setupComponent (runtime-core.esm-bundler.js:7120:11)
at mountComponent (runtime-core.esm-bundler.js:5473:13)
at processComponent (runtime-core.esm-bundler.js:5448:17)
at patch (runtime-core.esm-bundler.js:5038:21)
at mountChildren (runtime-core.esm-bundler.js:5234:13)
at processFragment (runtime-core.esm-bundler.js:5407:13)
重现步骤
npm start 启动后修改访问地址为:http://127.0.0.1:19168/#/WEB_APP/frontendKnowledge/main
!!!补充:在 frontendKnowledge/main/index.tsx文件中引入并使用vant的button或者cell组件
打开控制台即可看到报错
设备/浏览器chrome,edge