jQWidgets Forums

jQuery UI Widgets Forums React Error compiling webpack after upgrading to 6.2.0

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 6 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • assembler
    Participant

    Hi there,
    I’ve followed this link to upgrade to jqwidgets 6.2.0 in my react boilerplate test application.
    After npm start on my project folder it says:

    
    webpack built 5088b8c91c83a7db7329 in 63876ms
    
    ERROR in ./static/components/jqwidgets/styles/jqx.base.css
    Module parse failed: /home/username/project/static/components/jqwidgets/styles/jqx.base.css Unexpected token (3:0)
    You may need an appropriate loader to handle this file type.
    | /*Rounded Corners*/
    | /*top-left rounded Corners*/
    | .jqx-rc-tl
    | {
    |     -moz-border-radius-topleft: 3px;
     @ ./app/components/jqwidgets-react/react_jqxdropdownlist.js 16:0-66
     @ ./app/components/SelectUnits/index.js
     @ ./app/components/Footer/index.js
     @ ./app/components/Footer/Loadable.js
     @ ./app/containers/MainLayout/index.js
     @ ./app/containers/MainLayout/Loadable.js
     @ ./app/containers/App/index.js
     @ ./app/app.js
     @ multi eventsource-polyfill webpack-hot-middleware/client?reload=true ./app/app.js

    How can I get this working? What should I include in webpack in order to compile this?


    Martin
    Participant

    Hello assembler,

    I would suggest you to follow this Tutorial about using React Webpack with jQWidgets.
    The tutorial is tested with our latest version and it is working fine. You should just change the version of jqwidgets-scripts in the devDependencies in package.json to 6.2.0: "jqwidgets-scripts": "~6.2.0"

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.