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

Issue on Tiptapvuetify instanciation #319

Open
h-andriamaholy opened this issue Feb 11, 2022 · 0 comments
Open

Issue on Tiptapvuetify instanciation #319

h-andriamaholy opened this issue Feb 11, 2022 · 0 comments

Comments

@h-andriamaholy
Copy link

Hello,

I use the version 2.23.0 with theses dependencies:

  "dependencies": {
    "@babel/preset-env": "^7.8.2",
    "@babel/polyfill": "^7.4.4",
    "core-js": "^3.6.5",
    "tiptap-vuetify": "2.23.0",
    "vue": "^2.6.10",
    "vue-router": "^3.5.3",
    "vuetify": "^2.1.0"
  },

When I try to use tiptap-vuetify, I have this error log

bundle-esm.js:1448 tiptap-vuetify: Please, specify in options the Vuetify Object ("vuetify" property)

So I log in bundle-esm.js near to the equivalent of src/main.ts

install (VueFuncConstructor, options?: OptionsInterface) {
  // console.log(options)
  if (!options || !options.vuetify) {
    ConsoleLogger.error('Please, specify in options the Vuetify Object ("vuetify" property)')
  
    return
  }

And options is {vuetify:undefined}

And my tiptap-vuetify.js is the same of example

import Vue from 'vue'
import vuetify from './vuetify'
import 'vuetify/dist/vuetify.min.css'
import { TiptapVuetifyPlugin } from 'tiptap-vuetify'
// don't forget to import styles
import 'tiptap-vuetify/dist/main.css'

// you don't need it. this is for example purposes
const iconsGroup = localStorage.getItem('current_icons_group') || 'fa'

Vue.use(TiptapVuetifyPlugin, {
  vuetify,
  // "md" (default), "fa", "mdi"
  iconsGroup, // same as "iconsGroup: iconsGroup"
})

So I don't understand, can you help please?

Regards

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