jQuery UI Widgets Forums React Version 6.0.4 breaks React support?

Tagged: 

This topic contains 7 replies, has 5 voices, and was last updated by  admin 6 years, 4 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • Version 6.0.4 breaks React support? #101128

    Mike D
    Participant

    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.

    Version 6.0.4 breaks React support? #101160

    Martin
    Participant

    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,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    Version 6.0.4 breaks React support? #101290

    CodeMaven
    Participant

    Hi,

    I found the same issue when I updated to 6.0.4

    Troy

    Version 6.0.4 breaks React support? #101296

    Mike D
    Participant

    @martin sorry for the delay, how do I send the zip file?

    Version 6.0.4 breaks React support? #101297

    Peter Stoev
    Keymaster

    You can send it to support@jqwidgets.com or upload it somewhere and share a link.

    Version 6.0.4 breaks React support? #101311

    Mike D
    Participant

    I just emailed the client code to the provided address.

    Version 6.0.4 breaks React support? #101312

    Peter Stoev
    Keymaster

    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,
    Peter

    jQWidgets Team
    http://www.jqwidgets.com/

    Version 6.0.4 breaks React support? #101331

    admin
    Keymaster

    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,
    Peter

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.