【问题标题】:In NativeScript, why do I get an error 'Invalid character @'?在 NativeScript 中,为什么我会收到错误“无效字符 @”?
【发布时间】:2018-11-13 07:24:56
【问题描述】:

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

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';

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

如何解决这个错误?

【问题讨论】:

  • 您在哪里看到无效字符错误?在 Playground / Preview 应用程序中?另外 Vue 路由器它完全是实验性的,所以目前推荐使用手动路由器。

标签: vue.js nativescript


【解决方案1】:

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

运行tns update 并在此处关注instructions

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-11-30
    • 2018-06-14
    • 1970-01-01
    • 2011-10-08
    • 2010-11-15
    • 2017-01-16
    • 2021-03-21
    • 2019-04-02
    相关资源
    最近更新 更多