metonym / svelte-time

Svelte component and action to format a timestamp using day.js
https://metonym.github.io/svelte-time
MIT License
137 stars 8 forks source link

Cannot import Time with updated SvelteKit #27

Closed WebShapedBiz closed 1 year ago

WebShapedBiz commented 1 year ago

Hi.

I'm using svelte-time in two projects. The first project uses the SvelteKit version 1.0.0-next.445 and everything works fine. However, the later project is using SvelteKit version 1.0.0-next.507 and when I add import Time from "svelte-time";, immediately I'm getting 500 Internal Error with an error message in the console saying SyntaxError: The requested module '/node_modules/dayjs/plugin/relativeTime.js?v=175ce1d1' does not provide an export named 'default' (at dayjs.js?v=175ce1d1:2:8)

Node version: 16.14.1 npm version: 8.19.2

Cheers.

WebShapedBiz commented 1 year ago

Solved with #24