coolswitch / tiptap-extension-image-upload

Image upload extension for tiptap, support image preview(tiptap的图片上传扩展,支持图片预览或占位)
MIT License
32 stars 8 forks source link

imgPlaceholder.vue required a loader #2

Open fstrauf opened 1 year ago

fstrauf commented 1 year ago

Hey, great project!

Have just tried out the basic config and run into this:

./node_modules/tiptap-extension-image-upload/src/imagePlaceholder.ts
Module parse failed: Unexpected token (5:7)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import imgPlaceholder from './imgPlaceholder.vue'
| 
> export interface ImagePlaceholderOptions {
|   inline: boolean
|   HTMLAttributes: Record<string, any>

I'm using nextjs and not vue.

Are there any prerequisites of using this extension?

DiogoNo commented 4 months ago

Same issue here! I'm trying to use with react

xumeng commented 1 month ago

Same issue here!