Skip to content

bug: Stencil Wrapper components for Vue not usable with Vite #4598

Closed
@verena-ifx

Description

@verena-ifx

Prerequisites

Stencil Version

3.0.0

Current Behavior

I found this issue , but sadly it was closed.
I am expierencing the same issue.
I have a core library and two wrapper libraries for vue and react. Build and deployment works fine and testing them locally using npm link as well. I have a similar setup as here Ionic example project

Once I deploy my vue-library to npm and try to use it in an example application with Vue3 and Vite, I get the following errors: Failed to fetch dynamically imported module: my-component. The same error occurs when using React + Vite.

I have set enableImportInjection to true in my stencil.config.js, but still the same error.

Expected Behavior

should work as described in the official documentation

System Info

No response

Steps to Reproduce

I simply followed the instructions of the Stencil documentation and now added the extras - enableImportInjection: true to my stencil.config

Code Reproduction URL

https://github.com/Infineon/infineon-design-system-stencil
=> examples/wrapper-components/vue-javascript/ => npm i @infineon/infineon-design-system-vue => npm run dev

Additional Information

No response

Metadata

Metadata

Assignees

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