I have a create-react-app hobby project that works passably well under 5.7.2. I just downloaded 6.0.4 and replaced the jqwidgets-react and jqwidgets folders in ./src and ./public respectively.
When I run the project now, I get this error:
 Module not found: Can’t resolve ‘../jqwidgets/jqxcore.js’ in ‘C:\Users\md\tempweb\client\src\jqwidgets-react’
So as a diagnostic I copied the jqwidgets folder into ./src, but the error message remained.
If I revert to 5.7.2 everything works fine.
- This topic was modified 1 year, 11 months ago by Mike D.
Hello Mike D,
Can you send us a zip archive of your project, so we look where the problem might be.
I found the same issue when I updated to 6.0.4
You can send it to email@example.com or upload it somewhere and share a link.
I just emailed the client code to the provided address.
Since jQWidgets ver. 6+, we tried to make things simpler for React, but it seems that we missed a small step.
The solution which you can use is:
1. Copy the jqwidgets-604 folder in the src folder. Make sure that jqwidgets-604 includes all files from ver. 6.0.4, because in the .zip archive it includes only some of the files.
2. Add /* eslint-disable */ to jqxcore.js, jqxdraw.js and jqxgauge.js.
3. Remove the .js references from index.html.
That is solution number 1.
The second solution is:
Remove the jqx files imports from jqxgauge.js.
The third solution is:
Use jqwidgets-react from ver.5.7.2 and jqwidgets scripts from 6.0.4.
You must be logged in to reply to this topic.