ethr-did
ethr-did copied to clipboard
[BUG] Cannot read properties of undefined (reading 'getResolver') when installing on new React app with Vite
Current Behavior
What is the current behavior?
Getting the error: Cannot read properties of undefined (reading 'getResolver')
when importing ethr-did
in a completely new React app generated with create vite
.
Expected Behavior
No errors
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
-
npm create vite@latest
-
npm i ethr-did
-
npm run dev
Environment Details
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
- node/browser version: Node v18.16.1, "vite": "^4.4.5", "react": "^18.2.0", "@nx/react": "16.9.0"