首页 > 解决方案 > 在 NativeScript 中,为什么我会收到错误“无效字符 @”?

问题描述

我正在尝试获取以下代码库:

https://github.com/andreliem/vue-nativescript-getting-started

在 NativeScript Playground 中工作。

到目前为止,我有:

https://play.nativescript.org/?template=play-vue&id=TTgcmi&v=18

但 .scss 文件中的以下行:

@import '~nativescript-theme-core/scss/skins/light/index';

正在生成错误“无效字符:@

如何修复此错误?

标签: vue.jsnativescript

解决方案


您需要在此处更新 {NS} 和所有依赖项。该代码库已有 5 个月的历史,并且仍在使用旧版本的 CSS 加载器,其中存在此​​问题。

运行tns update并按照此处的说明进行操作。


推荐阅读