RangeError: Maximum call stack size exceeded

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
backend

Research direction

Start by reproducing the reported RangeError with the two container.bind calls and the @inject(TYPES.MailSender) MailSenderPort dependency shown in the issue. Trace how the mismatched binding type is resolved and determine the expected behavior or diagnostic for that configuration; the issue provides no file or test path, so the relevant entry point must be located first.

Written by the indexing model from the issue text.

Description

bug
container.bind<MailSenderPort>(TYPES.MailSender, DependencyType.ADAPTER, MailSender);
container.bind<PasswordEmailProcessing>(TYPES.MailSender, DependencyType.ADAPTER, PasswordEmailProcessing, {
  singlton: true,
});

Если случайно указать неправильный тип, при том что в PasswordEmailProcessing есть
@inject(TYPES.MailSender) private mailSender: MailSenderPort;

Dominant language
TypeScript
Stars
6
Forks
3
Avg merge
3d 16h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lad-tech/nsc-toolkit

All issues in lad-tech/nsc-toolkit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.