Why "Uncaught (in promise) TypeError: this.Root is not a constructor"?

Viewed 147

Anyone seen Uncaught (in promise) TypeError: this.Root is not a constructor (start.js:692 ) in the browser console? I've tried resetting endpoints, pages, hooks.js and jsconfig.json without any luck.

1 Answers

The cause seems to be a breaking change in SvelteKit. I had to replace

const code = request.query.get('code');

in my endpoints with

const code = params.get('code');
Related