RADZEN 2.17.5 no JQUERY

#1

Hi, I just update at 2.17.5 version, and the build of my application have this error: "error TS2307: Cannot find module 'jquery'" at the line where I import jquery:

import * as $ from 'jquery';

How I can solve the problem?

Thanks

0 Likes

#2

Radzen applications never depended on jQuery - probably it was a transitive dependency of a third party component and your import worked by chance. After we updated all third party packages jQuery probably dropped hence the error.

You can install jquery from npm if you want to use it.

  1. Open a terminal and go to <your app>\client
  2. Make sure there isn't a node_modules directory there. If there is delete it.
  3. Run npm install to install all dependencies.
  4. Then add jQuery npm install --save jquery @types/jquery
0 Likes

#3

Hi Korchev, thanks, now it's ok.

0 Likes