NativeScript / NativeScript/nativescript-cli

6.0 vue doesn't work at all

未關閉
#4,797 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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



貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。