升级指南
预计升级时间:10-20分钟.
要升级到NativeScript 8.0,请从一个干净的分支开始。
安装最新的NativeScript CLI:
bash
$ npm install -g nativescript通过运行以下命令验证您是否使用最新版本ns -v.
在您的项目运行中
bash
$ ns migrate这应该使您的项目与最新的依赖关系保持同步。你可能需要改变的其他一些事情:
如果您仍然有从tns-core-modules,您必须更新它们才能使用@nativescript/core,请参阅NativeScript博客中的导入参考guid:https://blog.nativescript.org/nativescript-7-import-reference/index.html/
在你的css中,如果你有以开头的导入~您需要删除波浪号:
css
@import "~@nativescript/theme/...";
@import "@nativescript/theme/...";