enhancement/issue 684 improve import map generation diagnostics #1389
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
#684
Documentation
Summary of Changes
Made diagnostics output a bit more readable
ERROR (ERR_PACKAGE_PATH_NOT_EXPORTED): unable to resolve specifier =>
@types/ws
No "exports" main defined in /Users/owenbuckley/Workspace/analogstudiosri/api/node_modules/@types/ws/package.json imported from /Users/owenbuckley/Workspace/analogstudiosri/api/node_modules/@greenwood/cli/src/lib/walker-package-ranger.js
ERROR (ERR_PACKAGE_PATH_NOT_EXPORTED): unable to resolve specifier =>
dunder-proto
No "exports" main defined in /Users/owenbuckley/Workspace/analogstudiosri/api/node_modules/dunder-proto/package.json imported from /Users/owenbuckley/Workspace/analogstudiosri/api/node_modules/@greenwood/cli/src/lib/walker-package-ranger.js
ERROR (ERR_PACKAGE_PATH_NOT_EXPORTED): unable to resolve specifier =>
math-intrinsics
No "exports" main defined in /Users/owenbuckley/Workspace/analogstudiosri/api/node_modules/math-intrinsics/package.json imported from /Users/owenbuckley/Workspace/analogstudiosri/api/node_modules/@greenwood/cli/src/lib/walker-package-ranger.js
ERROR (ERR_MODULE_NOT_FOUND): unable to resolve specifier =>
type-fest
Cannot find package 'type-fest' imported from /Users/owenbuckley/Workspace/analogstudiosri/api/node_modules/@greenwood/cli/src/lib/walker-package-ranger.js
Handle NodeJS resolving to built-ins - https://github.com/thescientist13/import-meta-resolve-demo?tab=readme-ov-file#node-built-ins-hijacking-dependencies
TODO
ERR_PACKAGE_PATH_NOT_EXPORTED
- just going to document best we can for now - Improved Import Map Generation Error Handling / Diagnostics reporting #1396