Continue Discussion 12 replies
December 2020

robertino.calcaterra Auth0 Employee

How did you like this post? Please share any comments or feedback with us on this thread

1 reply
December 2020 ▶ robertino.calcaterra

over.run

This is great, super helpful, except… I’m getting rollup errors, trying to use the library.

[!] (plugin commonjs) SyntaxError: Unexpected token (15:9794) in {...}\node_modules\@auth0\auth0-spa-js\dist\auth0-spa-js.production.esm.js

I’m not really familiar with rollup, so, I’m stumped. … loading the script straight from the CDN works, so, I’m just gonna go with that for now. :woman_shrugging:

1 reply
January 2021 ▶ over.run

fikfikky

Hi. Thanks for pointing this out, can you please describe the point where you started getting this error so we can investigate further. Thanks

January 2021

AntSmithCode

Great tutorial!

Working on a project to switch bootstrap to Tailwind.

I was wondering did we need to create a file named TaskList.svelte?

I didn’t see it inside the repository, but it was mentioned in the tutorial.

1 reply
January 2021

konrad.sopala Community Engineer

Tagging @fikfikky @coderonfleek for better visibility

January 2021 ▶ AntSmithCode

fikfikky

Yes. At the beginning of the “Building the Task List” section, a TaskList.svelte file was created.

1 reply
January 2021 ▶ fikfikky

konrad.sopala Community Engineer

Thanks for the follow-up!

January 2021

StaringSkyward

This is a great tutorial and timely for me as I am looking at building my first Svelte app with authentication.

One suggestion: since pop-ups are problematic for so many people how about a loginWithRedirect style flow instead?

January 2021

konrad.sopala Community Engineer

Tagging @coderonfleek (the article author) for better visibility of that feature request @StaringSkyward

1 reply
January 2021 ▶ konrad.sopala

StaringSkyward

I will try to get a working example and submit a PR to the github repo. I’m a beginner with Svelte so I’m not sure of my code quality but I will give it a go.

January 2021

konrad.sopala Community Engineer

Perfect! Give it a go and share the link to the PR once you have it!

January 2022

dan-auth0 Auth0 Employee

If you are looking for examples on how to use Auth0 with Svelte, please check out the following code samples :slight_smile: