使用了uniapp的vue3+ts+vite进行开发,发现只要import了其他模块的代码方法,vendor.js里面的context就为空对象,里面没有Array等字段,导致报错报tma-core.js:2 [TMA] [require 调用产生同步异常时将阻塞后续代码执行,请及时做出调整],Uncaught TypeError: Cannot read property 'prototype' of undefined
使用了uniapp的vue3+ts+vite进行开发,发现只要import了其他模块的代码方法,vendor.js里面的context就为空对象,里面没有Array等字段,导致报错报tma-core.js:2 [TMA] [require 调用产生同步异常时将阻塞后续代码执行,请及时做出调整],Uncaught TypeError: Cannot read property 'prototype' of undefined