axetroy / webuild

零配置, 无侵入式的小程序开发工具
Apache License 2.0
58 stars 7 forks source link

运行不起来 #11

Closed coolicer closed 6 years ago

coolicer commented 6 years ago

ReferenceError: Unknown plugin "transform-runtime" specified in "base" at 0, attempted to resolve relative to "/Users/xxx/xxx/wxapp/dist" at /usr/local/lib/node_modules/@axetroy/webuild/node_modules/.6.26.0@babel-core/lib/transformation/file/options/option-manager.js:180:17 at Array.map () at Function.normalisePlugins (/usr/local/lib/node_modules/@axetroy/webuild/node_modules/.6.26.0@babel-core/lib/transformation/file/options/option-manager.js:158:20) at OptionManager.mergeOptions (/usr/local/lib/node_modules/@axetroy/webuild/node_modules/.6.26.0@babel-core/lib/transformation/file/options/option-manager.js:234:36) at OptionManager.init (/usr/local/lib/node_modules/@axetroy/webuild/node_modules/.6.26.0@babel-core/lib/transformation/file/options/option-manager.js:368:12) at File.initOptions (/usr/local/lib/node_modules/@axetroy/webuild/node_modules/.6.26.0@babel-core/lib/transformation/file/index.js:212:65) at new File (/usr/local/lib/node_modules/@axetroy/webuild/node_modules/.6.26.0@babel-core/lib/transformation/file/index.js:135:24) at Pipeline.transform (/usr/local/lib/node_modules/@axetroy/webuild/node_modules/.6.26.0@babel-core/lib/transformation/pipeline.js:46:16) at /usr/local/lib/node_modules/@axetroy/webuild/node_modules/.6.26.0@babel-core/lib/api/node.js:134:18 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)

最后又出现 了这样的情况

qq20180201-143445 2x
coolicer commented 6 years ago

https://github.com/future-memory/qczwxapp 这是我同事写的,我怀疑是一个page文件夹有几个.js导致?

axetroy commented 6 years ago

抱歉,出差中,暂时无法解决你的问题. 如果有疑问,可以参考demo,自己写的,还有官方原生的demo。

axetroy commented 6 years ago

@coolicer 看了下源码,你得把原本的小程序代码,放在src目录。

不支持package.json和小程序源码放在同一目录

请参考本项目的examples

coolicer commented 6 years ago

@axetroy 整个项目放在src吗?

axetroy commented 6 years ago

@coolicer 对的

https://github.com/axetroy/webuild/tree/master/examples/official

coolicer commented 6 years ago

@axetroy 好的,谢谢