When trying to import the module in my project like this:
import * as MarkdownShortcuts from 'quill-markdown-shortcuts/src/index';
Quill.register('modules/markdownShortcuts', MarkdownShortcuts);
I get the following error:
Uncaught TypeError: Cannot assign to read only property 'exports' of object '[object Object]'
at Module.<anonymous> (index.js:281)
at Module../node_modules/quill-markdown-shortcuts/src/index.js (index.js:281)
at __webpack_require__ (bootstrap:83)
at Module../src/app/core/editor/editor.component.ts (main.js:2229)
at __webpack_require__ (bootstrap:83)
at Module../src/app/core/editor/editor.module.ts (editor.component.ts:32)
at __webpack_require__ (bootstrap:83)
at Module../src/app/core/text-modal/text-modal.module.ts (notification.service.ts:14)
at __webpack_require__ (bootstrap:83)
at Module../src/app/app.module.ts (app.component.ts:19)
When trying to import the module in my project like this:
I get the following error:
Context: Angular project.
Any ideas?