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
main.ts(5,17): error TS2314: Generic type 'IBar<T>' requires 1 type argument(s).
The issue appears to be because the foo.main shares the foo namespace with the third party foo.bar and cannot distinguish the thirty party namespace from the top-level bar namespace.
main.ts(5,17): error TS2305: Module 'foo.bar' has no exported member 'IBar2'
Is there any way to resolve the name clash? This simple example aside, you can imaging a large project which contains a module like somecompany.utility, which would prevent the use of any top-level utility module in the future.
The text was updated successfully, but these errors were encountered:
A way to resolve the name clash is covered by #983 which includes suggested workarounds in the interim. Hopefully one of those techniques can help unblock you. Let me know if that's not right or else we can close this as a duplicate.
I have the following:
compiling with:
fails with:
The issue appears to be because the
foo.main
shares thefoo
namespace with the third partyfoo.bar
and cannot distinguish the thirty party namespace from the top-levelbar
namespace.Updating the main file to drop the imports:
yields this error:
Is there any way to resolve the name clash? This simple example aside, you can imaging a large project which contains a module like
somecompany.utility
, which would prevent the use of any top-levelutility
module in the future.The text was updated successfully, but these errors were encountered: