You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux bgolding 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
esm/resolve
What steps will reproduce the bug?
Trigger the ERR_UNSUPPORTED_DIR_IMPORT error
How often does it reproduce? Is there a required condition?
100% iff you trigger this error
What is the expected behavior?
A grammatically comprehensible sentence.
Possibly:
Directory import '/home/bgolding/Desktop/test/node_modules/@angular/compiler-cli/ngcc' is not supported, resolving ES modules imported from /home/bgolding/Desktop/test/testing/node_modules/ng-packagr/lib/utils/ng-compiler-cli.js
Assuming this error means that:
It is not possible to import a directory, but
It is possible to import /home/bgolding/Desktop/test/testing/node_modules/ng-packagr/lib/utils/ng-compiler-cli.js as an alternative to that directory
Alternatively:
Directory import '/home/bgolding/Desktop/test/node_modules/@angular/compiler-cli/ngcc' is not supported while resolving ES modules imported from /home/bgolding/Desktop/test/testing/node_modules/ng-packagr/lib/utils/ng-compiler-cli.js
If this error means that:
It is not possible to import a directory, AND
It was trying to resolve an import from /home/bgolding/Desktop/test/testing/node_modules/ng-packagr/lib/utils/ng-compiler-cli.js
What do you see instead?
Directory import '/home/bgolding/Desktop/test/node_modules/@angular/compiler-cli/ngcc' is not supported resolving ES modules imported from /home/bgolding/Desktop/test/testing/node_modules/ng-packagr/lib/utils/ng-compiler-cli.js
Trott
added
errors
Issues and PRs related to JavaScript errors originated in Node.js core.
esm
Issues and PRs related to the ECMAScript Modules implementation.
and removed
linux
Issues and PRs related to the Linux platform.
labels
Nov 26, 2021
Thanks for sharing the case here @bgolding355, the clearer we can make this the better. At least the fix was at least relatively clear despite the wording.
I think resolving ES module without the plural is the direct grammar fix.
Perhaps we can make a rewording along the lines of is not supported by the ES module resolver imported from or similar.
Version
27b1088
Platform
Linux bgolding 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
esm/resolve
What steps will reproduce the bug?
Trigger the
ERR_UNSUPPORTED_DIR_IMPORT
errorHow often does it reproduce? Is there a required condition?
100% iff you trigger this error
What is the expected behavior?
A grammatically comprehensible sentence.
Possibly:
Assuming this error means that:
/home/bgolding/Desktop/test/testing/node_modules/ng-packagr/lib/utils/ng-compiler-cli.js
as an alternative to that directoryAlternatively:
If this error means that:
/home/bgolding/Desktop/test/testing/node_modules/ng-packagr/lib/utils/ng-compiler-cli.js
What do you see instead?
Additional information
node/lib/internal/errors.js
Lines 1578 to 1579 in 27b1088
https://stackoverflow.com/questions/64449464/error-err-unsupported-dir-import-directory-import-when-attempting-to-start-no
The text was updated successfully, but these errors were encountered: