Skip to content
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

fix ESM compat #76

Merged
merged 1 commit into from
Jan 24, 2024
Merged

fix ESM compat #76

merged 1 commit into from
Jan 24, 2024

Conversation

turadg
Copy link
Member

@turadg turadg commented Jan 24, 2024

Description

@0xpatrickdev ran into,

Error: Cannot find module '/Users/0xpatrick/repos/dapp-offer-up/node_modules/@agoric/rpc/dist/src/chainStorageWatcher' imported from /Users/0xpatrick/repos/dapp-offer-up/node_modules/@agoric/rpc/dist/index.js

and suggested the packages shoudl be compatible with ESM. I think this PR fixes that, though I don't know a good way to include a regression test.

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

Copy link
Member

@0xpatrickdev 0xpatrickdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally with yarn link and my vitest tests are now passing, ty @turadg !

 ✓ src/App.test.tsx (2)
   ✓ App.tsx (2)
     ✓ renders app title
     ✓ renders the wallet connection button

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants