modal's problem on react version
when I click a button which is supposed to open a modal but it doesn't happen and got this error
the button :
className='btn btn-sm btn-light-success fw-bolder ms-2 fs-8 py-1 px-3'
Upgrade to Pro
the error :
Uncaught TypeError: Cannot read properties of undefined (reading 'classList')
Uncaught ReferenceError: process is not defined
May I know which product and version are you using?
react . demo 1
It looks like your errors are not related to the modals, do you have this problem only with #kt_modal_upgrade_plan modal or with all modals?
Do you use the latest version of Metronic?
As you can see on our preview page all modals work fine.
Unfortunately, we weren't able to reproduce it in the latest Metronic version.
Did you make any changes to our codebase?
I had the same issue and when I replaced package.json and yarn.lock from the below URL it got fixed. not sure what's your root cause