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
The obtained error is Cannot find module '@scope/package' or its corresponding type declarations.
馃檪 Expected behavior
TSC currently compile self-referencing package that has unscoped names. TSC should also compile self-referencing scoped packages such as @scope/package.
changed the title [-]Unrecognized self-referencing package when the anme includes a @scope[/-][+]Unrecognized self-referencing @scope/package[/+]on Oct 2, 2021
Activity
[-]Unrecognized self-referencing package when the anme includes a @scope[/-][+]Unrecognized self-referencing @scope/package[/+]IllusionMH commentedon Oct 2, 2021
do you have
exportsinpackage.jsonas required by Node.js?https://nodejs.org/api/packages.html#packages_self_referencing_a_package_using_its_name
Conaclos commentedon Oct 3, 2021
Andrii Dieiev (@IllusionMH) Yes. I updated the issue to highlight this. Thanks.
andrewbranch commentedon Oct 4, 2021
Also just checking that your
...intsconfig.jsondoes not includemoduleResolution(which is implied bymodulebut can be overridden).Conaclos commentedon Oct 5, 2021
Andrew Branch (@andrewbranch)
Yes this field is not present.
To be exhaustive, I have the following tsconfigs: