Getting the following build error under iOS - nativescript

I'm using latest NS, TNS and tns-ios and getting the following error
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.
I cleaned my project - and now the typescript compiler fails and exit.
Using TS 2.4.2.
NS 4.1, TNS-CORE 4.1 and TNS-IOS 4.1
This is the tns build iOS output
`
Support for Node.js ^6.0.0 is deprecated and will be removed in one of the next releases of NativeScript. Please, upgrade to the latest Node.js LTS version.
Support for macOS 10.12 is deprecated and will be removed in one of the next releases of NativeScript. Please, upgrade to the latest macOS version.
Executing before-prepare hook from /Users/asrock/Documents/test/hooks/before-prepare/nativescript-dev-sass.js
Found peer node-sass
Executing before-prepare hook from /Users/asrock/Documents/test/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
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 compiler failed with exit code 1`

I experienced that error and I managed to fixed it. If you're using nativescript-angular you need to upgrade your angular version to 6 and it's dependencies.
You can follow this link https://www.nativescript.org/blog/upgrading-to-nativescript-webpack-0.12.0. Nativescript-core or nativescript-angular.
Hope this helps! Happy coding.

Needed typescript#2.7.2.
Nice if NS printed a message somewhere.

Related

Issues installing strapi

The engine "node" is incompatible with this module. Expected version ">=12.x.x <=16.x.x". Got "18.3.0"
error Found incompatible module.
I'm seeing this error when I trying to do npx create-strapi-app. unsupported engine.
Has anyone seen this error and been able to figure out what to do to fix it?
Only LTS versions are supported (v14 and v16). Other versions of Node.js may not be compatible with the latest release of Strapi. The 14.x version is most recommended by Strapi.
https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/installation/cli.html#preparing-the-installation
Follow this article to downgrade node:
https://dev.to/smpnjn/how-to-change-nodejs-version-34b7

Why can't I update to the latest version of nativescript-theme (nativescript)

Using the latest nativescript core w/ Android 6.5
In the project file, I see I'm using nativescript-theme 2.2.1
I see the latest version is 2.3.4.
I do npm outdated on the command line and nativescript-theme is not listed.
Anyone know why I cannot update to the latest version?
I also did npm outdated #nativescript/theme.

Ionic1 with CocoaPods does not let me build my app in Xcode9

I work on an older App of mine which is Ionic-v1. I install the OneSignal plugin which is working now only with CocoaPods. At first all went fine, Android works flawless but I am not able anymore to build my IOS app because of CocoaPods. I can do what I want I keep getting the following error:
ld: 72 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I lost the entire day trying to figure this out, I tried uncountable times any combination of “pod install, pod clean, pod disintegrate” etc. etc. but without any success.
I also found a post inside the ionic forum from #blakgeek and install his plugin “cordova-plugin-cocoapod-support” but keep getting the same errors. But with or without this plugin I keep getting the same error.
I would be happy if anybody can help me here because at this point I am pretty lost.
Thank you in advance
Xcode 9
Ionic 3.18 (But app is Ionic v1)cli packages: (/usr/local/lib/node_modules)
#ionic/cli-utils : 1.18.0
ionic (Ionic CLI) : 3.18.0
global packages:
cordova (Cordova CLI) : 7.1.0
Gulp CLI : CLI version 3.9.1 Local version 3.9.1
local packages:
Cordova Platforms : android 6.3.0 ios 4.5.3
Ionic Framework : ionic1 1.2.4
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
ios-sim : 5.0.6
Node : v8.9.1
npm : 2.15.12
OS : macOS Sierra
Xcode : Xcode 9.0.1 Build version 9A1004
Environment Variables:
ANDROID_HOME : /Volumes/Mac External HD/Android/sdk
Misc:
backend : pro
I just ended up deleting once again my entire ios platform for the xxx time and somehow solved it with the following steps.
a. deleted my complete ios platform
b. deleted the onesignal cordova plugin
c. reinstalled the onesignal plugin
d. recreated my ios platform BUT forced version ios4.4.0 with the following command "ionic cordova platform add ios#4.4.0"
e. changed into my /platform/ios directory and made one "pod install"
f. opened xcode and build and run without any further issue.
Short explanation. I ended up with tone of duplicate symbol erros because I tried just to many things and manually added to many things. (cant recall what I did all) how ever I never paid attention in the number of duplicate symbols. I started out with just 2 which seems to be a known issue (thankx to this issue report https://github.com/ionic-team/ionic/issues/12849#issuecomment-328472880) but with my tests and trials I ended up with much more and got completely of track.
After clean install with ios#4.4.0 all worked fine for me.
thank all for your attention...

Xamarin - The "XamlXTask" task failed unexpectedly

I am getting the following error when trying to build my Xamarin apps in Release. The build in Debug works just fine. This has only started happening lately after updating all nuget packages to the latest version of Xamarin, etc.
Error:
The only fix for me was to downgrade Xamarin.Forms and Xamarin.Forms.Maps from version 2.3.4.247 (currently latest version) to version 2.3.4.231. I tried uninstalling and installing the latest version before and that did not work unfortunately. Version downgrade fixed the issue for me.

Compiler update for Carthage project

I got a project, which is built with Carthage and uses swift2.0. I am trying to run the project, but encountered this issue:
Module file was created by a newer version of the compiler.
After struggling for about 1 hour, I found that this error occurs when I trying to build Carthage project in newer version of Xcode. My version is 7.2 and the project was built using a newer compiler version.
How can I build this project in Xcode 7.2? I don't want revert my xcode version.
Any help would be appreciated.
After upgrading my xcode version to 7.3, the problem has fixed.

Resources