Reputation: 255
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?
Upvotes: 2
Views: 1512
Reputation: 192
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.
Upvotes: 1
Reputation: 1
When you migrate the project it will change your tns-platform-declaration to @nativescript/types
https://nativescript.org/blog/nativescript-7-announcement/
Upvotes: 0