svelte-time icon indicating copy to clipboard operation
svelte-time copied to clipboard

Uncaught SyntaxError: ambiguous indirect export: default

Open norricorp opened this issue 2 years ago • 5 comments

Hello, I wonder if you can help with this.

Here are snippets of my code

  import Time, { svelteTime } from "svelte-time";
  import { dayjs } from "svelte-time";
......
{#if first}
    <p>
      {first.publish_date} 
      <time
          use:svelteTime="{{
          timestamp: first.publish_date,
        }}"
      />
     </p>
{/if}

without the svelteTime code, all is well, first.publish_date is printed. With the extra code, I get an error in firefox console of above. It is a line two of days.js.

So I changed first.publish_date with "2021-02-14" and got the same error. Obviously this works in the repl.

Any ideas what I am doing wrong?

norricorp avatar Dec 03 '22 10:12 norricorp