js-newbee / taro-yanxuan

首个 Taro 多端统一实例 - 网易严选(小程序 + H5 + React Native) - By 趣店 FED

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

编译小程序,报错:internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'caniuse-lite/dist/unpacker/agents'

MarsLeeJ opened this issue · comments

� Taro v1.3.4

开始编译项目 taro-yanxuan
internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module 'caniuse-lite/dist/unpacker/agents'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (D:\taro-yanxuan\node_modules_browserslist@3.2.8@browserslist\index.js:4:14)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)

commented

� Taro v1.3.4

开始编译项目 taro-yanxuan
internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module 'caniuse-lite/dist/unpacker/agents'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (D:\taro-yanxuan\node_modules_browserslist@3.2.8@browserslist\index.js:4:14)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)

请问这个问题解决了吗 我也遇到了这个问题 一直找不到原因 求解答