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
My library has several optional dependencies. The dependencies shouldn't be present at all.
Despite that stackblitz forces to install the dependencies and their dependencies, what is a bit strage.
@satanTime, I was able to open your repo in our new VS Code editor without encountering the error you mention in Step 3. I'm going to preliminarily mark this issue as resolved, but feel free to comment & re-open if you are still experiencing the optional deps issue!
Description of Bug
My library has several optional dependencies. The dependencies shouldn't be present at all.
Despite that stackblitz forces to install the dependencies and their dependencies, what is a bit strage.
Steps to Reproduce
Expected Behavior
Because these dependencies are optional, a
require
call should throw an error, or returnundefined
and let the library solve the situation.Screenshots/Screencast
an optional dependency is handled like that:
https://github.com/ike18t/ng-mocks/blob/master/libs/ng-mocks/src/lib/common/ng-mocks-stack.ts#L7-L16
The text was updated successfully, but these errors were encountered: