0

I am developing angular2seedadvanced app. The Web and Desktop app are created successfully but while building nativescript app it shows an error

ns-renderer: localStorage is not defined

I am following this plugin.

And also loopback sdk builder and mongoDb.

I am new to nativescript. any help will highly helpfull and appreciable.

Hardik Vaghani
  • 2,163
  • 24
  • 46
Khushi
  • 1,759
  • 6
  • 26
  • 45

1 Answers1

2

localStorage does not exist in NativeScript. You need to use application-settings module instead.

Have a look at this discussion: https://github.com/NativeScript/NativeScript/issues/2517

  • I have nativescript sdk provided by loopback sdk builder. In that i have this application settings you mentioned above but i dont know how to include this only in nativecsript (angular2seedadvanced app) web and desktop app work perfectly but nativescript not. – Khushi Dec 08 '16 at 06:02