solana-mobile / mobile-wallet-adapter

Other
224 stars 91 forks source link

Declare types in package.json exports #773

Closed nedrise27 closed 3 months ago

nedrise27 commented 3 months ago

When installing @solana-mobile/wallet-adapter-mobile as dependency for a solidjs project, I got this error:

Could not find a declaration file for module '@solana-mobile/wallet-adapter-mobile'. '/home/nedrise/Work/Personal/solid-solana-wallet-adapter/node_modules/@solana-mobile/wallet-adapter-mobile/lib/esm/index.js' implicitly has an 'any' type. There are types at '/home/nedrise/Work/Personal/solid-solana-wallet-adapter/node_modules/@solana-mobile/wallet-adapter-mobile/lib/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@solana-mobile/wallet-adapter-mobile' library may need to update its package.json or typings.ts(7016)

When using locally linked version with the suggested changes, this error went away.