DavidWells / DavidWells/analytics

Property <<plugin name>> does not exist on type 'Plugins'

Open
#266 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2.7k
Forks
267
PR merge metrics
No merged PRs in 30d

Description

Hey! I'm creating a new plugin for the analytics lib :)
It's almost ready to be published, but I'm getting this Typescript error when calling custom methods in my plugin:

image

I'm uncertain if that's something I missed in my configuration, or if that's something we can improve in the main analytics lib. I can prepare a PR here too.

Contributor guide

Open the contributing guide

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

Start by reproducing the TypeScript error when calling custom methods on a plugin, then inspect the analytics library's plugin type declarations and the plugin API. Done means valid custom plugin methods no longer produce the reported property error, with coverage for the corrected typing behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.