-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] fails with Vite bundler: Cannot read 'getResolver' of undefined #186
Comments
Any updates on this? Is there any quick way to solve this for now? |
@nacho-villanueva, not from my side, but there is a workaround that you can use |
I found a workaround for this.
this will manually map the package only for the development build. |
🎉 This issue has been resolved in version 11.0.0-alpha.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [11.0.0](10.1.10...11.0.0) (2024-09-30) ### Bug Fixes * add esm wrapper instead of double transpile ([d2bbeaf](d2bbeaf)) * **build:** build commonjs and also expose esm wrapper ([522c199](522c199)) * **build:** include default export to work around some bundler issues ([#205](#205)) ([1e9e4ef](1e9e4ef)), closes [#186](#186) * **build:** use commonjs module in tsconfig ([e66d054](e66d054)) * **ci:** run tests on a matrix of node versions ([3825ac0](3825ac0)) * create alpha release ([1d5d5f2](1d5d5f2)) ### Features * **deployment:** add gnosischain and holesky deployments ([#206](#206)) ([4992094](4992094)) ### BREAKING CHANGES * ESM is only supported through a wrapper
🎉 This issue has been resolved in version 11.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Current Behavior
ethr-did-resolver does not work with vite bundler and throw error:
Expected Behavior
it should work both for webpack and vite, I actually cannot make it work on webpack, but it works on CRACO since veramo-react-app-tutorial use CRACO for example
Failure Information
Steps to Reproduce
please enter commands in below to reproduce it, or just clone https://github.com/yurenju/vite-ethr-did-resolver to reproduce it
$ npm create vite@latest vite-ethr-did-resolver -- --template vanilla-ts $ cd vite-ethr-did-resolver $ npm i $ npm i did-resolver ethr-did-resolver --save
then copy the example to counter.ts:
and execute
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.
Failure Logs/Screenshots
Alternatives you considered
CRACO seems work, reference to veramo-react-app-tutorial
The text was updated successfully, but these errors were encountered: