loopbackio / loopbackio/loopback.io

Binding.on getting issue

Open
#1,302 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
276
Forks
382
Avg merge
6h 17m
Merged PRs (30d)
18

Description

URL of the page

If applicable.

Nature of the issue

TypeError: binding.on is not a function
node_modules/@loopback/core/node_modules/@loopback/context/src/context-tag-indexer.ts:50:17)

Expected behavior

What did you expect to happen?this.comonent(Compoent) in Application.ts

when i tried to bind component it should work like

Actual behavior

What actually happenend, with steps to reproduce (if applicable).
Create an application
Create a component and bind in Apllications.ts

Suggested resolution

How do you think this should be resolved (optional).

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.

Research direction

Begin with the component-binding example in Application.ts and reproduce the reported TypeError by creating an application, creating a component, and binding it. Compare the documented usage with the expected this.component(Component) behavior; done means the binding works without the binding.on is not a function error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.