Under TypeScript Node 16 module resolution (has type: module in the package.json and moduleResolution: Node16 in tsconfig.json), this package cannot be imported correctly.
import Wallet from '@project-serum/sol-wallet-adapter'
new Wallet()
// type error!
new Wallet.default(provider, 'network')
// runtime error!
Under TypeScript Node 16 module resolution (has
type: module
in thepackage.json
andmoduleResolution: Node16
intsconfig.json
), this package cannot be imported correctly.