You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing unit test for server code, and encounter this issue:
● Test suite failed to run
TypeError: Cannot convert undefined or null to object
at Function.getPrototypeOf (<anonymous>)
22 | import { logger } from '../logger';
> 23 | import DOMPurify from 'isomorphic-dompurify';
| ^
24 |
FYI, we have a server running node 16, and can't update to version 18 due to the limitation of the current linux system. Therefore, I'm using isomorphic-dompurify version 1.9.0, and not the latest one. If I use node 18 and latest version (2.19.0), it's working fine.
What can be done to resolve it, any suggestions are highly welcomed!
The text was updated successfully, but these errors were encountered:
Hey @lamngo255,
Sorry for not responding earlier. Was busy with other stuff.
I don't really know what to recommend in your case. Maybe try 1.8.0 or gradually downgrade to the point when it starts working.
I'm writing unit test for server code, and encounter this issue:
● Test suite failed to run
FYI, we have a server running node 16, and can't update to version 18 due to the limitation of the current linux system. Therefore, I'm using isomorphic-dompurify version 1.9.0, and not the latest one. If I use node 18 and latest version (2.19.0), it's working fine.
What can be done to resolve it, any suggestions are highly welcomed!
The text was updated successfully, but these errors were encountered: