nativescript-vue / nativescript-vue-navigator

A simple router for NativeScript-Vue, built on top of $navigateTo to simplify routing from within components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not find a declaration file for module 'nativescript-vue-navigator'

hgc2002 opened this issue · comments

I just install nativescript-vue-navigator to test it with 3 very basic pages (just labels and buttons on them) and this happened (also it crashed on ios).

Then I saw this message in the editor (vscode):

Could not find a declaration file for module 'nativescript-vue-navigator'. '/Users/hgc/aaa/proyectos/polimanual-nsvue/node_modules/nativescript-vue-navigator/index.js' implicitly has an 'any' type. Try npm install @types/nativescript-vue-navigatorif it exists or add a new declaration (.d.ts) file containingdeclare module 'nativescript-vue-navigator';ts(7016)

Apparently my project believes it has TypeScript somewhere, that is little strange because I simply download it from NSPlayground (yes, the web!, and starting the tutorial from scratch with HelloWorld!).

I was playing with other projects before to learn TypeScript but I don't know how all got messed to this point.

commented

In declarations:
declare module 'nativescript-vue-navigator'

In component:
$navigator: any;