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

Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'parent_component.$$')

Open petershaw opened this issue 3 years ago • 0 comments

As soon as I add

    <Auth scopes={['read']} on:authenticated={getUserName}>
        <div slot="loading">Loading...</div>
        <div slot="error" let:error>{error.message}</div>
        Hello {username}!
    </Auth>

From the example I get an error:

[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'parent_component.$$')
	construct_svelte_component_dev (bundle.js:540)
	update (bundle.js:840)
	update (bundle.js:1007)
	update$1 (bundle.js:245)
	flush$1 (bundle.js:212)
	promiseReactionJob
```

Does it work with current Svelte? `^3.53.1`

petershaw avatar Nov 22 '22 17:11 petershaw