Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

caught Error: Invalid date value at normalizeDate (date.js:75:11) #289

Open
RusinovAnton opened this issue May 4, 2023 · 1 comment
Open

Comments

@RusinovAnton
Copy link

Hi! I'm basically using the example from the documentation and it breaks right away. What am I doing wrong here?

  const heatmap = new HeatMap({
    props: {
      data: [
        { date: new Date(), value: 1 },
        { date: new Date(), value: 2 },
      ],
    },
    target: "#some-container",
  });
Uncaught Error: Invalid date value
    at normalizeDate (date.js:75:11)
    at chunkWeeks (heatmap.js:59:17)
    at $$self.$$.update (SvelteHeatmap.svelte:113:7)
    at init (index.mjs:2133:8)
    at new SvelteHeatmap (SvelteHeatmap.svelte:126:50)
    at instance (Board.svelte:4:16)
    at init (index.mjs:2122:11)
    at new Board (Board.svelte:11:30)
    at createProxiedComponent (svelte-hooks.js?v=2d5741a5:341:9)
    at new ProxyComponent (proxy.js?v=2d5741a5:242:7)
@jonhuang
Copy link

It looks like the startDate and endDate are mandatory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants