NativeScript / NativeScript/nativescript-cli
6.0 vue doesn't work at all
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
@jrz commented on Tue Jul 02 2019
tns info
Error while loading nativescript-cloud is: Cannot find module './services/livesync/livesync-service'
✔ Getting NativeScript components versions information...
✔ Component nativescript has 6.0.0-2019-07-02-133207-13547 version and is up to date.
✔ Component tns-core-modules has 5.4.3 version and is up to date.
✔ Component tns-android has 5.4.0 version and is up to date.
✔ Component tns-ios has 5.4.2 version and is up to date.
nodenv local 10.6.0
npm install -g nativescript@rc
npm install -g @vue/cli @vue/cli-init
vue init nativescript-vue/vue-cli-template testapp
cd testapp
npm install
tns run ios --hmr
$ tns run ios --bundle
Error while loading nativescript-cloud is: Cannot find module './services/livesync/livesync-service'
Searching for devices...
Preparing project...
/testapp/hooks/before-watch/nativescript-dev-webpack.js will NOT be executed because it has invalid arguments - $liveSyncService.
Nativescript-vue doesn't work without --bundle option. Please specify --bundle option to the command and execute it again.
# tns run ios
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 Node 10.6.0、nativescript@rc、Vue CLI template,以及 tns run ios --hmr 或 --bundle 重现报告中的设置。检查 nativescript-dev-webpack.js hook 和缺失的 ./services/livesync/livesync-service 模块。当 CLI 加载时不再出现该错误,并且 Vue 应用可以在 iOS 上运行时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, javascript
- 领域
- cli, mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100