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

Does svelte-scroller has been tested with Sapper? #2

Open
frenk196 opened this issue Jun 4, 2018 · 1 comment
Open

Does svelte-scroller has been tested with Sapper? #2

frenk196 opened this issue Jun 4, 2018 · 1 comment

Comments

@frenk196
Copy link

frenk196 commented Jun 4, 2018

I'm trying to use svelte-scroller following the README instructions with Sapper 0.13.0 and the sapper-template. Unfortunately I got the following error: UnhandledPromiseRejectionWarning: TypeError: _sveltejs_svelte_scroller__WEBPACK_IMPORTED_MODULE_1___default.a._render is not a function

Please, can you help me to understand why this happens? I'm doing something wrong?

Thank you.

@cssandstuff
Copy link

cssandstuff commented Jun 14, 2018

@frenk196
this might help:
https://stackoverflow.com/questions/50330825/sapper-and-svelte-scroller-example

or you can keep the configs as they are
and see this line in server.config.js

externals: Object.keys(pkg.dependencies),

it excludes all your dependencies from the compiler

So if you remove
"@sveltejs/svelte-scroller": "^1.0.4",
from your package.json then it will be processed by the webpack compiler and should work.

I guess there should be a more clever way of doing this but I don't know what it is as yet.

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