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

No work with Vue #18

Open
VictorPulzz opened this issue Jan 5, 2021 · 4 comments
Open

No work with Vue #18

VictorPulzz opened this issue Jan 5, 2021 · 4 comments

Comments

@VictorPulzz
Copy link

VictorPulzz commented Jan 5, 2021

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
Copy link

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

@joelcolucci
Copy link
Owner

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

@naitdima
Copy link

With Nuxt.js similar problems:

These dependencies were not found:

  • child_process in ./node_modules/node-quill-converter/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js
  • fs in ./node_modules/node-quill-converter/lib/index.js, ./node_modules/node-quill-converter/node_modules/jsdom/lib/jsdom/browser/resource-loader.js and 3 others
  • net in ./node_modules/forever-agent/index.js, ./node_modules/node-quill-converter/node_modules/tough-cookie/lib/cookie.js and 3 others
  • tls in ./node_modules/forever-agent/index.js, ./node_modules/tunnel-agent/index.js

@naitdima
Copy link

@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

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

4 participants