Skip to content

Service Locator incorrect example code #585

@Lutymane

Description

@Lutymane

What is the type of issue?

Example code is not working

What is the issue?

This part:

// Without 'setup', type will be missing
const error = new Elysia()
    .get('/', ({ a }) => a)

is missing .use(setup) before .get(...)

Where did you find it?

https://elysiajs.com/essential/plugin.html#plugin-deduplication:~:text=%27a%27)-,//%20Without%20%27setup%27%2C%20type%20will%20be%20missing%0Aconst,),-Property%20%27a%27%20does

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions