uniapp 执行小程序时,因引入的有 url-parse 模块,导致报以下错误
'requires-port' is imported by requires-port?commonjs-external, but could not be resolved – treating it as an external dependency
'querystringify' is imported by querystringify?commonjs-external, but could not be resolved – treating it as an external dependency
DONE Build complete. Watching for changes...
解决方案:
通过 pnpm i requires-port querystringify 安装下依赖即可