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
vite v2.4.4 building for production...
✓ 32 modules transformed.
dist/webcomponents.es.js 36.46kb / brotli: 10.31kb
dist/webcomponents.es.js.map 101.33kb
dist/style.css 117.61kb / brotli: 82.97kb
In the same project, we also build the application that uses this library, which basically comprises of web components as well, which serve as views. So I need a second entry point:
vite v2.4.4 building for production...
error during build:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
...
Suggested solution
Instead of a single entry point for libarary mode, allow an array of entry points.
Alternative
I've tried working around this limitation by using rollupOptionsinstead, but wasn"t able to figure it out:
Clear and concise description of the problem
I'm using Vite.js to build a webcomponent library for a customer.
This does perfectly create the desired output:
In the same project, we also build the application that uses this library, which basically comprises of web components as well, which serve as views. So I need a second entry point:
Unfortunately, that results in an error:
Suggested solution
Instead of a single entry point for libarary mode, allow an array of entry points.
Alternative
I've tried working around this limitation by using
rollupOptions
instead, but wasn"t able to figure it out:Unfortunately, this does not create the files I expect:
Additional context
I've read and upvoted #1736 and wanted to turn this into a feature request.
Validations
The text was updated successfully, but these errors were encountered: