turndown icon indicating copy to clipboard operation
turndown copied to clipboard

Add specific setup instructions for Vue users

Open a-toms opened this issue 3 years ago • 2 comments

  • Added `.default to allow Vue users to import turndown without failure. This is from https://stackoverflow.com/questions/55621010/using-turndown-in-vue-typeerror-turndownservice-is-not-a-constructor

a-toms avatar Sep 11 '21 17:09 a-toms

If update to package.json solves the problem, that would be nice. This is PR is documentation update, anyone facing similar issue can resolve from it.

srbala avatar Nov 27 '21 13:11 srbala

This feels incorrect - the issue in the linked SO question seems to be with RequireJS and not at all connected with VueJS. So maybe you were not using the correct JS file (lib/turndown.browser.umd.js)?

For usage with RequireJS, UMD versions are located in lib/turndown.umd.js (for Node.js) and lib/turndown.browser.umd.js for browser usage.

pavelhoral avatar Nov 28 '21 21:11 pavelhoral