wrong name for root module
MODIFY
packages/app-utils/index.d.ts
packages/app-utils/index.d.ts
@@ -3,5 +3,5 @@ export {
PageManifest,
PageComponentManifest,
SetupModule,
- RootModule
+ SSRComponentModule
} from './src/types';

MODIFY
packages/kit/src/api/dev/index.ts
packages/kit/src/api/dev/index.ts
@@ -14,7 +14,7 @@ import { ManifestData, ReadyEvent } from '../../interfaces';
import { mkdirp } from '@sveltejs/app-utils/files';
import { render } from '@sveltejs/app-utils/renderer';
import { get_body } from '@sveltejs/app-utils/http';
-import { RootModule, SetupModule } from '@sveltejs/app-utils';
+import { SSRComponentModule, SetupModule } from '@sveltejs/app-utils';
import { DevConfig, Loader } from './types';
import { copy_assets } from '../utils';
import { readFileSync } from 'fs';
@@ -139,7 +139,7 @@ class Watcher extends EventEmitter {
setup = {};
}
- let root: RootModule;
+ let root: SSRComponentModule;
try {
root = await load('/_app/main/generated/root.js');

wrong name for root module