Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No Overload Matches this call" when doing Vue.use(DateTimePicker) in main.ts #71

Open
Dobermensch opened this issue Aug 8, 2020 · 0 comments

Comments

@Dobermensch
Copy link

I have a NS-Vue TS enabled project. I've installed the plugin using tns add plugin nativescript-datetimepicker. Now after installation, I go to the main.ts file to declare the plugin like so
import DateTimePicker from "nativescript-datetimepicker/vue"; Vue.use(DateTimePicker); However I get swiggly red lines underneath 'DateTimePicker' in Vue.use(DateTimePicker).

I get the following error:
Screen Shot 2020-08-08 at 2 15 36 PM

So I changed the file node_modules/nativescript-datetimepicker/vue/index.d.ts from export * from "./index"; to

// export * from "./index";

declare const DateTimePicker: {
  install(Vue: any, options: any): void;
};
export default DateTimePicker;

and now the swiggly red lines around Vue.use(DateTimePicker) are gone and I can build the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant