plotly / dash-component-boilerplate

Get started creating your own Dash components here.
265 stars 182 forks source link

Problems with jquery #129

Open USchneid opened 2 years ago

USchneid commented 2 years ago

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?

xhluca commented 2 years ago

How did you add jquery? have you run:

npm i jquery
npm run build
Glyphman commented 1 year ago

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.