beyonk-group / svelte-datepicker

A lightweight datepicker written in Svelte
MIT License
142 stars 23 forks source link

Cannot read properties of undefined (reading 'extend') #60

Closed hitchhooker closed 2 years ago

hitchhooker commented 2 years ago
Cannot read properties of undefined (reading 'extend')
TypeError: Cannot read properties of undefined (reading 'extend')
    at /node_modules/.pnpm/@beyonk+svelte-datepicker@12.0.1/node_modules/@beyonk/svelte-datepicker/src/components/lib/date-utils.js:7:7
    at async instantiateModule (/home/satoshi/code/interest/node_modules/.pnpm/vite@2.9.9/node_modules/vite/dist/node/chunks/dep-59dc6e00.js:59333:9)

when using minimum example with svelte.config.js rules from repo.

documentation could include installation instructions, its often best thing to have. also adding code bars in examples would be great so wouldnt have to learn from source code

Masatoshi commented 2 years ago

try dynamic importing

gloverab commented 2 years ago

Experiencing the same issue here. Were you able to get this working?

Its-Just-Nans commented 2 years ago

Hello,

Here is a possible solution : https://github.com/beyonk-adventures/svelte-datepicker/issues/61

@hitchhooker but you need to use vitejs ! (which use itself rollup)