You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example uses on-the-fly compilation with require( 'svelte/ssr/register' );. When the build is changed to use generate: 'ssr', the history instance in the component is undefined, although server.js creates it.
Stacktrace
TypeError: Cannot read property 'location' of undefined
at data (D:\Dokumente\ws\microfrontends\cart\dist\ssr\bundle.js:512:23)
at Object._399.r.Route._render (D:\Dokumente\ws\microfrontends\cart\dist\ssr\bundle.js:555:24)
at Object._399.r.App._render (D:\Dokumente\ws\microfrontends\cart\dist\ssr\bundle.js:1058:40)
at Object._399.r.App.render (D:\Dokumente\ws\microfrontends\cart\dist\ssr\bundle.js:1039:17)
at D:\Dokumente\ws\microfrontends\cart\server.js:12:26
at Layer.handle [as handle_request] (D:\Dokumente\ws\microfrontends\cart\node_modules\express\lib\router\layer.js:95:5)
at next (D:\Dokumente\ws\microfrontends\cart\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (D:\Dokumente\ws\microfrontends\cart\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (D:\Dokumente\ws\microfrontends\cart\node_modules\express\lib\router\layer.js:95:5)
at D:\Dokumente\ws\microfrontends\cart\node_modules\express\lib\router\index.js:281:22
I cannot easily switch to on-the-fly compilation because of sveltejs/svelte#967.
There is no workaround ATM.
The text was updated successfully, but these errors were encountered:
The example uses on-the-fly compilation with
require( 'svelte/ssr/register' );
. When the build is changed to use generate: 'ssr', the history instance in the component is undefined, although server.js creates it.Stacktrace
I cannot easily switch to on-the-fly compilation because of sveltejs/svelte#967.
There is no workaround ATM.
The text was updated successfully, but these errors were encountered: