Skip to content
Discussion options

You must be logged in to vote

I have a machine-measured answer to the request for a data point, and it reconciles both readings. Short version: the read-only stack is real, it is not version-of-Node specific, and it is not tsx specific either — it appears whenever resolution runs through a registered module-hook chain. That is why you cannot reproduce it (no hook registered) and why packages/ contains no defineProperty on stack (the freeze is Node's, not the repo's).

Measured matrix

Same specifier (<pkg>/subpath-not-exported.json), same Node, one variable at a time. The descriptor is read off the real ERR_PACKAGE_PATH_NOT_EXPORTED; the assignment is performed inside an ESM module (strict mode — see the trap below).

r…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@supralune
Comment options

Comment options

You must be logged in to vote
1 reply
@supralune
Comment options

Answer selected by supralune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants