svelte-scroller icon indicating copy to clipboard operation
svelte-scroller copied to clipboard

Does svelte-scroller has been tested with Sapper?

Open frenk196 opened this issue 6 years ago • 1 comments

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.

frenk196 avatar Jun 04 '18 16:06 frenk196

@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.

cssandstuff avatar Jun 14 '18 01:06 cssandstuff