donotebase / quasar-tiptap

A modern WYSIWYG rich-text editor built on top of tiptap and Quasar for Vue.js.
https://donotebase.github.io/quasar-tiptap
MIT License
314 stars 61 forks source link

Unknown custom element #26

Closed dantrevino closed 4 years ago

dantrevino commented 4 years ago

I'm using quasar v1.12.13 and @quasar/app v2.0.6. In my quasar.conf.js I had importStrategy: 'auto', and when add quasar-tiptap, saw a ton of 'unknown custom element' errors.

Setting importStrategy to 'all' worked, but is less than ideal.

larvanitis commented 4 years ago

importStrategy: 'auto' works only for your own code, not for the dependencies imported from node_modules. As such, you will have to manually add these to your quasar.conf.js > framework:

components: [
  'QAvatar',
  'QBtn',
  'QBtnDropdown',
  'QIcon',
  'QInput',
  'QItem',
  'QItemLabel',
  'QItemSection',
  'QList',
  'QMenu',
  'QScrollArea',
  'QScrollObserver',
  'QSeparator',
  'QSpinner',
  'QTooltip',
],
directives: ['ClosePopup'],
plugins: ['AppFullscreen', 'Notify'],
dantrevino commented 4 years ago

Thanks for the info!