在构建一个本地脚本-角应用程序的过程中,我收到了几个scss使用/用于除法的警告,因为它似乎很快就会被废弃。
示例:
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(blue($color) * 114, 1000)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
我正在学习本地脚本角,以建立移动和网络应用。我使用以下命令创建了一个项目
ng new -c=@nativescript/schematics sass-project --shared --style=scss
我的节点版本是14.15.2角版本是11.0.0,npm版本是6.14.9
当我执行命令时
tns run android or tns run ios
我收到以下错误
ERROR in ./app.scss Module build failed (from ../node_modules/sass-loader/dist/cjs.js): SassError: Undefined
我正在尝试使用TypeScript创建一个NativeScript-Vue项目。我已经设法让事情发展到它抱怨的地步:
ERROR in app.ios.js from UglifyJs
Unexpected token: operator (>) [app.ios.js:132,15]
令人不快的一行是:
new __WEBPACK_IMPORTED_MODULE_0_nativescript_vue___default.a({
// This line right here:
render: h => h(__WEBPACK_IMPORTED_MODULE_1__
我刚刚运行了tns run ios --emulator,我得到了这个:
/Users/me/Desktop/proj/projfront/App/platforms/ios/Pods/MBProgressHUD/MBProgressHUD.m:87:34: error: no known class method for selector
'labelColor'
_contentColor = [[UIColor labelColor] colorWithAlphaComponent:0.7f];
我按照Nativescript步骤创建了一个新的代码共享项目,我想使用sass。我尝试了两种方法,一种是具有NatievScript主题的,另一种是没有的:
ng new -c=@nativescript/schematics no-theme-project --shared --no-theme
或
ng new -c=@nativescript/schematics sass-no-theme-project --shared --style=scss --no-theme
在这篇文章中,我选择了No Theme。当它完成创建一个新项目时,文件夹如下所示:
在Desktop/T
我正在使用最新的NS、TNS和tns-ios,并收到以下错误
node_modules/tns-core-modules/ui/styling/gradient.d.ts(7,25): error TS6143: Module '../../css/parser' was resolved to '/Users/asrock/Documents/test/node_modules/tns-core-modules/css/parser.js', but '--allowJs' is not set.
我清理了我的项目-现在typescript编译
我正在用NativeScript构建一个全新的应用程序,但我在使用原生脚本cli创建组件/服务/等时遇到了问题。我只是一直在说:
Error: Invalid rule result: Instance of class Promise.
at t.project (/usr/local/lib/node_modules/nativescript/node_modules/@nativescript/schematics-executor/dist/index.js:250:1038)
...
我检查了这类错误,修复方法是拥有相同版本的@angular/cli和@schematics/
在默认启用hmr的情况下,Nativescript发布了5.4.0。升级到5.4.0之后,我的本地云构建以及本地构建开始使用以下错误信息:
Exception in thread "main" java.io.IOException: Couldn't find '/home/circleci/repo/platforms/android/build-tools/sbg-bindings.txt' bindings input file. Most probably there's an error in the JS Parser execut
我的Nativescript-Vue项目毫无理由地停止了工作,我不知道为什么。gradle构建正在因此错误而崩溃:
D8: Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
>
我正在与Nativescript角度和代码共享的应用程序工作。在几天前升级到Angular 10之后,一切都很好。今天我想用插件nativescript-plugin-firebase实现Firebase,但当我尝试运行我的应用程序时,我得到了以下错误: ERROR in ../node_modules/nativescript-plugin-firebase/firebase.js
Module not found: Error: Can't resolve 'tns-core-modules/application/application'
ERROR in .