Skip to content

React Integration - the build doesn't include web component files #1396

@Kurzas

Description

@Kurzas

I used the instruction provided on the website https://stenciljs.com/docs/react to integrate Stencil components into the React application.
The bundle with React components exists, it can be used, the dev task of the consumer react application works well.
However, after running the build task, the individual web component files are not included thus web components are not being loaded as seen on the screen below:
image
I switched to a create-react-app with the default configuration and there everything works fine.

Could you propose a solution for a React app built with vite that would include the web components?
A short discord discussion where I discussed this problem: https://discord.com/channels/520266681499779082/1107707233153855559/threads/1225105815208202330

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