Vite is built on top of ESBuild and Rollup, both of which use modern resolution strategies, such as package exports. When moduleResolution is set to node in tsconfig.json, TypeScript doesn't support modern resolution strategies. This doesn't affect the build process but affects developer experience. Importing a package with exports will show a TypeScript error but won't throw any error when bundling it with Vite.
I suggest changing near-wallets/tsconfig.json as follows
"moduleResolution": "ESNext",
"module": "Bundler"
I'd be glad to make a Pull Request if the maintainers agree on this.