I have used third-party dependency Ag-Grid in StencilJs. I have an older version. I want to upgrade to v31 directly using the codemod mentioned in the documentation: https://www.ag-grid.com/javascript-data-grid/upgrading-to-ag-grid-31/
However, when I run the command npx @ag-grid-community/[email protected] migrate, I am getting the following error:
npx: installed 2 in 27.155s
Cannot find module 'node:util'
Require stack:
- C:\Users\Username\AppData\Roaming\npm-cache\_npx\20860\node_modules\@ag-grid-community\cli\index.cjs
Updating node got the codemod to work for me make sure you are above version 15.