F-loat / mpvue-entry

⛓️ 集中式页面配置,统一构建入口,支持新增页面热更新
MIT License
353 stars 56 forks source link

使用Quickstart构建项目 运行报 Cannot read property 'exports' of null #116

Closed puzzle9 closed 5 years ago

puzzle9 commented 5 years ago

2019年04月27日16:46:38 深度截图_gnome-terminal-server_20190427164421

linux_64

puzzle9 commented 5 years ago

我本地版本是 v11.14.0 报错 然后用测试机 v8.14.0 正常

puzzle9 commented 5 years ago

最终换成 node 10.15.3-2 正常

kid1412621 commented 5 years ago

+1

kid1412621 commented 5 years ago

❯ node -v v12.2.0

DreamPWJ commented 5 years ago

升级node12确是不行 image

DreamPWJ commented 5 years ago

建议开发者使用nvm管理node版本,mpvue核心和相关维护不是很积极

ahan commented 5 years ago

我也在升级到 node12 后遇到同样报错。

研究了一下,发现错误是来自 parser/pages.jscompiler/config.js 两个文件中 require(paths.config) 这句代码。

WX20190706-194912

谷歌了相关关键词,未找到答案。

不知作者是否有遇到过这种奇怪报错。

kid1412621 commented 5 years ago

2.0.0 rc.9 还未修复啊, 算了, mpvue 的 bug 也老不修, 弃坑了

F-loat commented 5 years ago

已修复,node12 的 require.cache 可能有些微调,具体原因我后面再跟一下

guestccc commented 4 years ago

脑壳痛,看半天才发现是mpvue-entry的bug,哇,好气