joelcolucci / node-quill-converter

Convert HTML to a Quill Delta or a Quill Delta to HTML
MIT License
95 stars 25 forks source link

No work with Vue #18

Open VictorPulzz opened 3 years ago

VictorPulzz commented 3 years ago

When I install this package and add to Import section: import { convertHtmlToDelta } from 'node-quill-converter'; I got this errors Module not found: Error: Can't resolve 'child_process' in 'node_modules\jsdom\lib\jsdom\living' @ ./node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js 4:22-46 @ ./node_modules/jsdom/lib/jsdom/browser/Window.js @ ./node_modules/jsdom/lib/api.js @ ./node_modules/node-quill-converter/lib/index.js

Triggsy22 commented 3 years ago

Had the same Problem. And im using vue too. But it wasnt Vue. It was Webpack. Jsdom is not working with Webpack.

joelcolucci commented 3 years ago

Hey all! Interesting! Can you provide the minimal code necessary to reproduce?

naitdima commented 3 years ago

With Nuxt.js similar problems:

These dependencies were not found:

naitdima commented 3 years ago

@joelcolucci

Hey all! Interesting! Can you provide the minimal code necessary to reproduce?

Look, in mounted hook I'm using convertHtmlToDelta: https://codesandbox.io/s/h4b4o?file=/pages/index.vue