Skip to content

Controllers from external libraries are not recognized #446

@smarquez1

Description

@smarquez1

Hi, not sure if this is a known issue.

When I use a controller from an external library, such as this one, the LSP does not recognized it.

I'm loading this external library from an importmap btw.

This is the error I get in my erb file:

Stimulus LSP : "nested-form" isn't a valid Stimulus controller. Did you mean "site-selector"? [stimulus.controller.invalid]

Also, If I create my own controller and inherit from an external one, I'll get a similar error:

export default class MyController extends NestedForm {
   ...
}

Otherwise this is super useful so thanks for creating it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions