-
Notifications
You must be signed in to change notification settings - Fork 204
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
Add optional peer dependencies to new shared components modules? #1317
Milestone
Comments
Working on this! |
if (isNodeJs()) {
// eslint-disable-next-line import/no-extraneous-dependencies
require('@hyperledger/indy-vdr-nodejs')
} else if (isReactNative()) {
require('@hyperledger/indy-vdr-react-native')
} else {
// throw error unsupported platform
}
import { indyVdr } from '@hyperledger/indy-vdr-nodejs'
const agent = new Agent({
config: {},
dependencies: agentDependencies,
modules: {
indyVdr: new IndyVdrModule({
indyVdr,
})
}
}) |
For approach 3.: Example with indy-sdk:
For e.g. indy-vdr you can use the |
@TimoGlastra can you share more context on why a new Agent is created for approach 3? |
github-project-automation
bot
moved this from In Progress
to Done
in Ledger Agnostic AnonCreds
Mar 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Either add them as optional peer deps to the package.json or add documentation on that you need to install them
The text was updated successfully, but these errors were encountered: