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

[Error] No matching export in "node_modules/svelte-ux/dist/index.js" for import "getDuration" #127

Closed
OWLYone opened this issue Mar 7, 2024 · 3 comments

Comments

@OWLYone
Copy link

OWLYone commented Mar 7, 2024

In a vanilla installation following the documentation to the letter:

  • Vanilla installation of Sveltekit
  • Svelte-UX installed with Svelte-Add
  • Tailwind setup with Svelte-Add + Config updated
  • LayerChart and D3 added as per "with Svelte-UX" instruction

I'm getting the following Error:
`✘ [ERROR] No matching export in "node_modules/svelte-ux/dist/index.js" for import "getDuration"

node_modules/layerchart/dist/utils/ticks.js:3:33:
  3 │ import { formatDate, PeriodType, getDuration } from 'svelte-ux';`

And indeed, it does not look like it's properly exported/imported... Or I'm missing something?

@techniq
Copy link
Owner

techniq commented Mar 7, 2024

Hey @OWLYone 👋, thanks for checking out LayerChart. That's interesting you're receiving that error. Could you share your repo to see if I can reproduce locally?

@OWLYone
Copy link
Author

OWLYone commented Mar 7, 2024

Sure, made a fresh step-by-step, the same effect.

Tryout-Layerchart with SvelteUX

`✘ [ERROR] No matching export in "node_modules/svelte-ux/dist/index.js" for import "getDuration"

node_modules/layerchart/dist/utils/ticks.js:3:33:
  3 │ import { formatDate, PeriodType, getDuration } from 'svelte-ux';
    ╵                                  ~~~~~~~~~~~

16:15:01 [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/layerchart/dist/utils/ticks.js:3:33: ERROR: No matching export in "node_modules/svelte-ux/dist/index.js" for import "getDuration"
at failureErrorWithLog (F:...\tryout-layerchart\node_modules\esbuild\lib\main.js:1651:15)
at F:...\tryout-layerchart\node_modules\esbuild\lib\main.js:1059:25
at F:...\tryout-layerchart\node_modules\esbuild\lib\main.js:1527:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
`

@techniq
Copy link
Owner

techniq commented Mar 7, 2024

@OWLYone That was interesting... definitely something that needed fixed but not sure why it didn't show up in the build or other projects.

You should be good after updating to Svelte UX to 0.61.2 and LayerChart to 0.32.1.

image

Btw, we have a Discord server if you run into any other problems. Github issues are good to, but Discord can be faster to iterate.

@techniq techniq closed this as completed Mar 7, 2024
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