Date libraries are not optional when using @salt-ds/date-adapters
with Vite
#4468
Open
4 of 11 tasks
Labels
package: date-adapters
status: awaiting triage
Automatically added to new issues. Should be removed once they have been triaged.
type: bug 🪲
Something isn't working
Latest version
Description
When using new lab v56 of date picker with
@salt-ds/date-adapters
, Vite will fail running local server while trying to resolve all date librariesSteps to reproduce
Use Vite TS template, install Salt packages with
date-fns
only (one of 4 date packages), runnpm run dev
, error belowAlso tried below vite setting, without any luck
According to this vite issue, only way to make it work would be not importing it.
Expected behavior
Only required package should be imported, maybe split 4 adapters into different entry point would work?
Package name(s)
Lab (@salt-ds/lab)
Package version(s)
"@salt-ds/lab": "1.0.0-alpha.56"
Browser
Operating system
Are you a JPMorgan Chase & Co. employee?
The text was updated successfully, but these errors were encountered: