Skip to content

Conversation

@dynst
Copy link
Contributor

@dynst dynst commented Nov 16, 2025

A null target giving an explicit

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './subpath/file.js' is not defined by "exports" in node_modules/cosmjs-types/package.json

is probably more understandable than the slightly inexplicable double-extension in

Error [ERR_MODULE_NOT_FOUND]: Cannot find module node_modules/cosmjs-types/subpath/file.js.js

https://nodejs.org/api/packages.html

a much better error message than 'file.js.js not found'.
@webmaster128
Copy link
Member

Thanks!

@webmaster128 webmaster128 merged commit b86e0f3 into cosmos:main Nov 22, 2025
1 check passed
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