Migrating to NativeScript 7

Viewed 1371

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?

2 Answers

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.

Related