Skip to content

bug: typings and autocompletion for react component props don't work #600

Open
@shabetya

Description

@shabetya

Prerequisites

Stencil Version

4.7.2 (and latest the same)

Stencil Framework Output Target

React

Stencil Framework Output Target Version

0.8.2

Current Behavior

Generated react components don't have typings and autocompletion for available properties. Checked in WebStorm and VSCode as well.
In general, component is functional and consumes properties, but properties are not hinted.

Image
Image
Image

Expected Behavior

Developer can see component props and types. The attached screenshot is from Stencil v2 React library as example

Image

Steps to Reproduce

Reproduced by following official documentation without any changes.

Created Lerna monorepo.
Stencil library package
React library.
Default MyComponent with 3 props first, middle and last.

Vite React as project consumer.

Code Reproduction URL

https://github.com/shabetya/stencilReact

Additional Information

The issue is also reproduceable on the last version of Stencil core 4.23.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanteda good issue for the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions