Tencent / wepy

小程序组件化开发框架
https://wepyjs.gitee.io/wepy-docs/
Other
22.48k stars 3.05k forks source link

wepy-cli 1.740版本生成web版本的问题 #1261

Closed dbl520 closed 5 years ago

dbl520 commented 6 years ago

Description

目前就是把用wepy做的小程序转web 在转换成过程中就报wepy_cli报错

[Description of the issue]

Environment

Reproduce

[如何重现问题]

[How to reproduce the issue]

Observed Results

[实际表现]

[Observed Results]

Expected Results

[期望表现]

dbl520 commented 6 years ago

转换过程中报错的问题

`C:\Users\Administrator\Desktop\项目\wepy_video\wepy_video>wepy build --output web [11:04:56] 编译 WEB [11:04:56] [写入] HTML: web\index.html [11:04:56] [编译] 入口: app.wpy [11:04:56] [编译] WPY : src\app.wpy [11:04:56] [编译] WPY : src\pages\index.wpy [11:04:56] [编译] WPY : src\pages\play.wpy [11:04:57] [拷贝] PNG : src\images\love.png [11:04:57] [拷贝] PNG : src\images\play.png [11:04:57] [拷贝] PNG : src\images\plays.png [11:04:57] [拷贝] PNG : src\images\share.png TypeError: Cannot read property 'modulePath' of undefined at C:\Users\Administrator\AppData\Roaming\npm\node_modules\wepy-cli\lib\web\compile-script.js:116:54 at String.replace () at Object.resolveMap (C:\Users\Administrator\AppData\Roaming\npm\node_modules\wepy-cli\lib\web\compile-script.js:53:43) at C:\Users\Administrator\AppData\Roaming\npm\node_modules\wepy-cli\lib\web\compile-script.js:198:34 at at process._tickCallback (internal/process/next_tick.js:188:7) at Function.Module.runMain (module.js:678:11) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:608:3

C:\Users\Administrator\Desktop\项目\wepy_video\wepy_video> `

dbl520 commented 6 years ago

有大神遇到吗

superlbr commented 6 years ago

参考 https://github.com/Tencent/wepy/issues/1276 ,锁定lodash的版本

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. 因为这个 Issue 最近没有任何有效回复,所以被自动标记为了stale。 如果在未来7天依旧没有任何激活操作,那么该 Issue 将会被自动关闭。 感谢您的提问。

jingxinxin commented 6 years ago

遇到同样的问题 image

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. 因为这个 Issue 最近没有任何有效回复,所以被自动标记为了stale。 如果在未来7天依旧没有任何激活操作,那么该 Issue 将会被自动关闭。 感谢您的提问。

margox commented 5 years ago

同样问题,有人解决了么?