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

Compatibility with Rollup #52

Open
connorrothschild opened this issue Sep 13, 2021 · 1 comment
Open

Compatibility with Rollup #52

connorrothschild opened this issue Sep 13, 2021 · 1 comment

Comments

@connorrothschild
Copy link

Hi! Love the project and would like to use it an ongoing project using Svelte. Currently if I write the simplest implementation of the library:

<script>
  export let name;
  import { onMount } from "svelte";
  import HorizontalScroll from "@oberon-amsterdam/horizontal";

  onMount(() => {
    new HorizontalScroll();
  });
</script>

I get the following error in console:

Uncaught ReferenceError: events_1 is not defined

This is likely some rollup error I'm not super knowledgeable about. Could you direct me to some resources to help, or let me know if the project is currently incompatible with Svelte?

Thank you!

@xlotlu
Copy link

xlotlu commented Oct 14, 2021

Using vite here. This affects any rollup-based tool, so it should be renamed accordingly.

To bypass the problem I checked out the repo, copied the src folder as "horizontal" in my project and imported directly from it. I used the tsconfig from vite's vanilla template: https://github.com/vitejs/vite/blob/main/packages/create-vite/template-vanilla-ts/tsconfig.json

@chrisneven chrisneven changed the title Compatibility with Svelte Compatibility with Rollup Feb 28, 2022
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