miniprogram_npm/segment/引入报错,不知道什么原因?
在小程序中引入第三方库segment,js page函数中添加 如下代码,编译通过,但是运行时报错:“VM153 WAService.js:2 Error: module "miniprogram_npm/segment/fs.js" is not defined,为什么又冒出个fs.js?小白求指点 谢谢 at h (VM153 WAService.js:2)” Page({ ..... const Segment=require("../../miniprogram_npm/segment/index") var segment=new Segment segment.useDefault() console.log(segment.doSegment(query)) }