Im a vue noob and trying to figure out a way to integrate Parse SDK into a Nuxt app, it seems most examples are for vue and not so many for the latest Nuxt, I have defined a plugin in the nuxt config with this content
import Parse from 'parse/node';
import { defineNuxtPlugin } from '#app'
export default defineNuxtPlugin((nuxtApp) => {
Parse.initialize(
'13123123123123123',
null
);
Parse.serverURL = 'https://server.com/parse/';
// Vue.use(Parse)
nuxtApp.vueApp.use(Parse)
})
which results in Argument of type 'typeof Parse' is not assignable to parameter of type 'Plugin_2'.
I also tried this but i really dont know enough about nuxt or vuejs
import Vue from 'vue';
import Parse from 'parse/node';
Parse.initialize(
'13123123123123123',
null
);
Parse.serverURL = 'https://server.com/parse/';
Vue.use(Parse)
which resulted in Property 'use' does not exist on type