dash-component-boilerplate icon indicating copy to clipboard operation
dash-component-boilerplate copied to clipboard

Problems with jquery

Open USchneid opened this issue 4 years ago • 2 comments
trafficstars

Hello, I would like to try to create a component from the react summernote component. I add

"react-summernote": "^2.0.2"
"jquery":"^3.6.0"

to the dependency and the npm run build is executed without a problem. As soon as I put the import ReactSummernote from 'react-summernote' element to the ... react.js file, the

ERROR in ./node_modules/react-summernote/dist/react-summernote.js
Module not found: Error: Can't resolve 'jquery' in 'node_modules\react-summernote\dist'
@ ./node_modules/react-summernote/dist/react-summernote.js 3:27-44
 @ ./src/lib/components/editor.react.js
 @ ./src/lib/index.js

Does anybody else have problems using jquery?

USchneid avatar Aug 04 '21 15:08 USchneid

How did you add jquery? have you run:

npm i jquery
npm run build

xhluca avatar Aug 16 '21 17:08 xhluca

Hi, for get the best out of my Summernote installation I have to use jquery-1.12.4. If I use later the menu starts to be disfunctional. I use the latest installation of Summernote. For now I have only instabillity in the fonts installed.

Glyphman avatar Aug 15 '22 04:08 Glyphman