You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
As I said in the issue you linked, this package uses stencil and it requires the package to be built with an option to make it work with Vite. Stencil uses /* @vite-ignore */ and therefore it's their responsibility to make it work after build.
Describe the bug
I'm using a package called
blip-ds
. To make it work with Vite, I had to change the settings, as @sapphi-red suggested on this issue.However, when I generate a production build, the error comes back.
The custom element is not rendered, and there are errors on the console.
I've spent hours tinkering with
vite.config.ts
trying to solve this.Is there any fix/workaround for this?
Reproduction
https://stackblitz.com/edit/vitejs-vite-3wnebs
Steps to reproduce
Using the stackblitz repo:
npm run build
followed bynpm run preview
From scratch:
npm i blip-ds
<bds-button />
npm run build
followed bynpm run preview
System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: