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

Sapper import issue #34

Closed
JohnRSim opened this issue Jun 22, 2021 · 1 comment
Closed

Sapper import issue #34

JohnRSim opened this issue Jun 22, 2021 · 1 comment

Comments

@JohnRSim
Copy link

When trying to use with sapper I'm getting the following error.

\node_modules\svelte-gantt\index.js:1
import moment, { duration } from 'moment';
^^^^^^

SyntaxError: Cannot use import statement outside a module
@JohnRSim
Copy link
Author

used within the onmount resolved -

const { SvelteGantt, SvelteGanttDependencies, SvelteGanttExternal, SvelteGanttTable } = await import('svelte-gantt');

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

1 participant