jQuery UI Widgets › Forums › React › Version 6.0.4 breaks React support?
Tagged: reactjs
This topic contains 7 replies, has 5 voices, and was last updated by admin 6 years, 4 months ago.
-
Author
-
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:
./src/jqwidgets-react/react_jqxlineargauge.js
[1] 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.
Hello Mike D,
Can you send us a zip archive of your project, so we look where the problem might be.
Thank you!Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/Hi,
I found the same issue when I updated to 6.0.4
Troy
You can send it to support@jqwidgets.com or upload it somewhere and share a link.
I just emailed the client code to the provided address.
Hi Mike,
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.
Best Regards,
PeterjQWidgets Team
http://www.jqwidgets.com/We updated jQWidgets. Just run create-jqwidgets-react-app again and write npm install, then npm start to get started. It’s necessary jqwidgets and jqwidgets-react folders to be siblings. It’s no longer necessary to add javascript files to the index.html files, these are imported automatically by the jqwidgets react components.
Best Regards,
PeterjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.