Open Its-Just-Nans opened 2 years ago
The issue with using dayjs/esm is that it breaks in SSR mode. It's a complex problem to fix.
Where have you experienced this failing?
My thoughts at the moment are to rip out dayjs entirely and use date-fns
, since I think dayjs has a fair amount of esm issues.
Hello, Here is a solution to using this library with vitejs as a bundler working with
"vite": "^3.0.7"
Step by step
install
@rollup/plugin-replace
change your
vite.config.js
Now you can use the DatePicker