nativescript-angular/application cannot find module - nativescript

am developing an app using nativescript and angular2 with angular2seed advanced. while developing this app face a problem ie,while giving
import {nativeScriptBootstrap} from "nativescriptangular/application";
Cannot find module 'nativescript-angular/application'.am new to this how can i solve this issue.Thanks in advance.
package.json
"nativescript-angular": "0.6.0",

Your nativescript-angular package version is a bit old - a lot of things has been deprecated and a number of breaking changes were introduced in the latest versions of Angular-2 so you should use the latest nativescript-angular version (currently 1.1.2) which is up to date with the latest versions of Angular-2 as well.
With the new versions the bootstrapping of NativeScript app is done with these imports:
import { platformNativeScriptDynamic, NativeScriptModule } from "nativescript-angular/platform";\
...
platformNativeScriptDynamic().bootstrapModule(AppComponentModule);
For example take a look at this sample application or the advanced-seed nativescript app

Related

Migrating to NativeScript 7

I'm migrating a typescript/angular based NativeScript project over to the latest version of NativeScript, and am running into an issue. Before, I was using the tns-platform-declarations plugin (https://preview.npmjs.com/package/tns-platform-declarations) so I could get intellisense (I'm using VS Code) for things like UITextView and other native calls. But when updating my project, this module is removed from package.json. And if I add it back in, it says my project is not compatible with 7.x.
Do I just need to wait until the plugin is updated, or is there another way to get intellisense going, but still use NS 7.x?
Extending on Matthew's answer. Make sure you are including in your tsconfig the references.d.ts file, the one that points to either tns-platform-declarations or #nativescript/types, depending on your NativeScript version.
When you migrate the project it will change your tns-platform-declaration to #nativescript/types
https://nativescript.org/blog/nativescript-7-announcement/

How can I solve this error when using react-native and react-native-ble-plx on iOS?

I am trying to develop an iOS (and Android) app using react-native and react-native-ble-plx. It works perfectly on Android, but I constantly get the same error on iOS. I have even started a brand new react-native project from scratch in an effort to narrow it down to the lowest common denominator, and this issue happens each time I try to run it after adding and linking the react-native-ble-plx package.
I've tried clearing caches and rebooting
I've tried rolling back to previous versions
I've tried embedding the 3rd party package to the embedded binaries, but I'm unsure what to add (I don't see a .framework file)
Any help would be greatly appreciated, I've already invested about 40 hours trying to figure this out, and I'm stumped.
I'm new to iOS development, so I'm not sure what information is would help, but here are the versions to several things:
OS: maxOS High Sierra Version 10.13.6
Xcode: Version 9.4.1 (9F2000)
Swift: Version 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2)
react: Version 16.4.1
react-native: Version 0.56.0
react-native-ble-plx: Version 0.9.1
npm: Version: 6.2.0
Yarn: Version 1.7.0
Carthage: Version 0.30.1
In case anybody else was as stumped as I was, maybe this will help.
I submitted this to another site, and was graciously helped by another user there. He created this repo, which works perfectly.
I haven't taken the time to figure out what I did wrong just yet (time crunch), but hopefully this will help others.

Is PESDK compatible with React 16.2?

I am using React 16.2 and am running into issues when integrating PESDK
ERROR in ./~/photoeditorsdk/js/PhotoEditorSDK.UI.DesktopUI.Controls.Adjustments.min.js
Module not found: Error: Can't resolve 'photoeditorsdk/PhotoEditorSDK.UI.DesktopUI.Core'
When pretty much following the example from the demo repo
I also tried to clone the demo repo, and update it to React 16.2 and the latest PESDK version (4.3.0) and got the same issue
Is this compatible with React 16.2, and if not, do you have plans to support this in the near future?
The SDK is compatible with React 16.2.
The error you encounter is fixed in v4.3.1 that we released today.
Also take a look at our react demo integration athttps://github.com/imgly/pesdk-react-demo

Import mobile specific nativescript plugin in NathaWalker angular-seed-advanced

I recently started working on Nativescript. I found NathanWalker's angular-seed-advanced quite interesting. I am facing one issue in that. How do I import mobile specific nativescript's plugin in my components as that component is being used for web app too.
If I import directly nativescript plugins in src/client/app/components then Web app will not work as expected. I need to know how to import plugin safely so that both web app and mobile app work as expected
You can import mobile specific items in Root module file which is - native.module.ts.
Code organization section in the same seed project read me file gives good picture of what file is for what, including the above one.
Hope this helps :)

Playground in Swift won't use Firebase

As u probably all might know Firebase made a Version jump and I am trying to get my setup working with the Xcode Playground.
There is a reference how to implement Firebase in Playground with older versions of Cocoapods and Ruby but that won't really work for me swift playground for experimenting with firebase. Even though Firebase implementation in the Project itself works fine and i can import my Firebase it won't work on a Playground any more.
Does somebody know how to add a working setup with a Playground and Firebase?
Software in use:
Cocoapods: 2.6.4
Pod: 1.0
Xcode: 7.3.1
Firebase: 3.2.0
Any help or clues here for me?
I created a Framework and then imported into my Playground. Make sure you properly target the framework in the Podfile:
target 'YourApp' do
pod 'Firebase/Core'
target 'YourAppFramework' do
end
end
Once you build the framework then import:
import AppFramework
import FirebaseCore
Most things will work, except for Auth related functions.

Resources